Browse Source

Fix error when filling items

* lisp/org.el (org-adaptive-fill-function): Items do not have
  a :post-affiliated property. Use :begin property instead.

This patch follows 86f27311250488e1a7cb686bebf6f36601278888.
Nicolas Goaziou 5 years ago
parent
commit
3ea9372860
1 changed files with 4 additions and 1 deletions
  1. 4 1
      lisp/org.el

+ 4 - 1
lisp/org.el

@@ -21226,7 +21226,10 @@ meant to be filled."
 	   (comment (looking-at "[ \t]*# ?") (match-string 0))
 	   (footnote-definition "")
 	   ((item plain-list)
-	    (make-string (org-list-item-body-column post-affiliated) ? ))
+	    (make-string (org-list-item-body-column
+			  (or post-affiliated
+			      (org-element-property :begin element)))
+			 ? ))
 	   (paragraph
 	    ;; Fill prefix is usually the same as the current line,
 	    ;; except if the paragraph is at the beginning of an item.