Przeglądaj źródła

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 12 lat temu
rodzic
commit
3ea9372860
1 zmienionych plików z 4 dodań i 1 usunięć
  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.