From 5ae0749e635d1da14ac6fa63d3b6ec905ab1b6fb Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Fri, 30 Jan 2015 00:31:33 +0100 Subject: [PATCH] ox-html: Do not output "nil" for empty sections * lisp/ox-html.el (org-html-section): Do not output "nil" when section has no contents. Reported-by: T.F. Torrey --- lisp/ox-html.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ox-html.el b/lisp/ox-html.el index 7c2167930..2817d6c61 100644 --- a/lisp/ox-html.el +++ b/lisp/ox-html.el @@ -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 -- 2.11.4.GIT