From 02f3ee40f30eccf7f601edb0d8043f986f17b2ca Mon Sep 17 00:00:00 2001 From: Jambunathan K Date: Sat, 2 Jun 2012 05:34:20 +0530 Subject: [PATCH] org-e-html: Fix misc. bugs --- contrib/lisp/org-e-html.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/contrib/lisp/org-e-html.el b/contrib/lisp/org-e-html.el index db75c59a9..6c23d8b74 100644 --- a/contrib/lisp/org-e-html.el +++ b/contrib/lisp/org-e-html.el @@ -1627,7 +1627,8 @@ This function shouldn't be used for floats. See (plist-get info :html-postamble)) (let* ((html-post (plist-get info :html-postamble)) (date (org-e-html-format-date info)) - (author (plist-get info :author)) + (author (let ((author (plist-get info :author))) + (and author (org-export-data author info)))) (email (plist-get info :email)) (lang-words (or (assoc (plist-get info :language) org-export-language-setup) @@ -2122,6 +2123,8 @@ holding contextual information." "Transcode an HEADLINE element from Org to HTML. CONTENTS holds the contents of the headline. INFO is a plist holding contextual information." + ;; Empty contents? + (setq contents (or contents "")) (let* ((numberedp (org-export-numbered-headline-p headline info)) (level (org-export-get-relative-level headline info)) (text (org-export-data (org-element-property :title headline) info))