forked from mirrors/org-mode
ox-ascii: Fix title when 2 width char is used
* lisp/ox-ascii.el (org-ascii-template--document-title): Find width of title with `string-width' instead of counting characters. Fixes: #48148 Reported-by: Shingo Tanaka <shingo.fg8@gmail.com>
This commit is contained in:
parent
0e7153e63d
commit
ab82d6ae25
|
@ -1033,7 +1033,7 @@ INFO is a plist used as a communication channel."
|
||||||
;; Format TITLE. It may be filled if it is too wide,
|
;; Format TITLE. It may be filled if it is too wide,
|
||||||
;; that is wider than the two thirds of the total width.
|
;; that is wider than the two thirds of the total width.
|
||||||
(title-len (min (apply #'max
|
(title-len (min (apply #'max
|
||||||
(mapcar #'length
|
(mapcar #'string-width
|
||||||
(org-split-string
|
(org-split-string
|
||||||
(concat title "\n" subtitle) "\n")))
|
(concat title "\n" subtitle) "\n")))
|
||||||
(/ (* 2 text-width) 3)))
|
(/ (* 2 text-width) 3)))
|
||||||
|
|
Loading…
Reference in a new issue