diff options
author | Bastien Guerry <bzg@altern.org> | 2013-03-08 16:52:33 +0100 |
---|---|---|
committer | Bastien Guerry <bzg@altern.org> | 2013-03-08 16:53:06 +0100 |
commit | e100bf91c4ac380010fac020af2a1b7a9ae4a176 (patch) | |
tree | 53ec39901446b37f43d05fdf036f793427097da6 | |
parent | a68ae084226bb4cad35254f3b54d4b2cb418b329 (diff) | |
download | org-mode-e100bf91c4ac380010fac020af2a1b7a9ae4a176.tar.gz |
ox-html.el (org-html-template): Always include the title.
* ox-html.el (org-html-template): Always include the title as <h1
class="title"></h1>, even when there is no title, as org-info.js
needs it.
Thanks to Henry Atting for reporting this.
-rw-r--r-- | lisp/ox-html.el | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/ox-html.el b/lisp/ox-html.el index 6497b90..829fe28 100644 --- a/lisp/ox-html.el +++ b/lisp/ox-html.el @@ -1593,8 +1593,7 @@ holding export options." (format "<div id=\"%s\">\n" (nth 1 org-html-divs)) ;; Document title. (let ((title (plist-get info :title))) - (when title - (format "<h1 class=\"title\">%s</h1>\n" (org-export-data title info)))) + (format "<h1 class=\"title\">%s</h1>\n" (org-export-data (or title "") info))) contents "</div>\n" ;; Postamble. |