1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-11-26 07:33:39 +00:00

org-e-ascii: Fix justification for lines looking like a fill-prefix

* contrib/lisp/org-e-ascii.el (org-e-ascii--justify-string): Fill
  justification for lines looking-like a fill-prefix.
This commit is contained in:
Nicolas Goaziou 2013-02-01 23:47:00 +01:00
parent 787a07421c
commit cb1386ba39

View File

@ -434,7 +434,10 @@ HOW determines the type of justification: it can be `left',
(with-temp-buffer
(insert s)
(goto-char (point-min))
(let ((fill-column text-width))
(let ((fill-column text-width)
;; Disable `adaptive-fill-mode' so it doesn't prevent
;; filling lines matching `adaptive-fill-regexp'.
(adaptive-fill-mode nil))
(while (< (point) (point-max))
(justify-current-line how)
(forward-line)))