Explorar o código

org-element: Interpret headlines without a `:pre-blank' property

* contrib/lisp/org-element.el (org-element-headline-interpreter):
  Interpret headlines without a `:pre-blank' property.
Nicolas Goaziou %!s(int64=13) %!d(string=hai) anos
pai
achega
4f8e1e85b2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      contrib/lisp/org-element.el

+ 1 - 1
contrib/lisp/org-element.el

@@ -446,7 +446,7 @@ CONTENTS is the contents of the element."
 		  (t tag-string))))
 	 (commentedp (org-element-property :commentedp headline))
 	 (quotedp (org-element-property :quotedp headline))
-	 (pre-blank (org-element-property :pre-blank headline))
+	 (pre-blank (or (org-element-property :pre-blank headline) 0))
 	 (heading (concat (make-string level ?*)
 			  (and todo (concat " " todo))
 			  (and quotedp (concat " " org-quote-string))