ox-ascii: Fix 12a6303

* ox-ascii.el (org-ascii-template--document-title): Take full lines
  into considerations for titles.
This commit is contained in:
Rasmus 2015-04-08 22:00:50 +02:00
parent bf4edb6d16
commit 951ae54c2e
1 changed files with 1 additions and 1 deletions

View File

@ -1013,7 +1013,7 @@ INFO is a plist used as a communication channel."
;; Format TITLE. It may be filled if it is too wide,
;; that is wider than the two thirds of the total width.
(title-len (min (apply #'max
(mapcar #'length (org-split-string title)))
(mapcar #'length (org-split-string title "\n")))
(/ (* 2 text-width) 3)))
(formatted-title (org-ascii--fill-string title title-len info))
(line