ox-html: Do not output "nil" for empty sections master
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Thu, 29 Jan 2015 23:31:33 +0000 (00:31 +0100)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Thu, 29 Jan 2015 23:31:33 +0000 (00:31 +0100)
* lisp/ox-html.el (org-html-section): Do not output "nil" when section
  has no contents.

Reported-by: T.F. Torrey <tftorrey@tftorrey.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/94464>

lisp/ox-html.el

index 7c21679..2817d6c 100644 (file)
@@ -3078,7 +3078,7 @@ holding contextual information."
                (or (org-element-property :CUSTOM_ID parent)
                    section-number
                    (org-export-get-headline-id parent info))
-               contents)))))
+               (or contents ""))))))
 
 ;;;; Radio Target