diff --git a/lisp/org.el b/lisp/org.el index 162179aee..d1698e16b 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -21061,7 +21061,8 @@ meant to be filled." (make-string (org-list-item-body-column (org-element-property :begin parent)) ? )) - ((looking-at "[ \t]+") (match-string 0)) + ((save-excursion (beginning-of-line) (looking-at "[ \t]+")) + (match-string 0)) (t "")))) (comment-block ;; Only fill contents if P is within block boundaries. @@ -21073,7 +21074,9 @@ meant to be filled." (skip-chars-backward " \r\t\n") (line-beginning-position)))) (when (and (>= p cbeg) (< p cend)) - (if (looking-at "[ \t]+") (match-string 0) "")))))))))) + (if (save-excursion (beginning-of-line) (looking-at "[ \t]+")) + (match-string 0) + "")))))))))) (declare-function message-goto-body "message" ()) (defvar message-cite-prefix-regexp) ; From message.el