>From 921081b428445d42f2ee82b9be9135a95db9e084 Mon Sep 17 00:00:00 2001 From: Eric Abrahamsen Date: Mon, 17 Aug 2015 23:41:19 +0800 Subject: [PATCH] Only use HTML5 fancy elements in HTML5 * lisp/ox-html.el (org-html-template): The check for HTML5 fancy elements should only apply when exporting to HTML5. --- lisp/ox-html.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lisp/ox-html.el b/lisp/ox-html.el index bdcdeee..4f94090 100644 --- a/lisp/ox-html.el +++ b/lisp/ox-html.el @@ -1932,13 +1932,15 @@ holding export options." (subtitle (plist-get info :subtitle))) (when title (format - (if (plist-get info :html-html5-fancy) + (if (and (org-html-html5-p info) + (plist-get info :html-html5-fancy)) "
\n

%s

\n%s
" "

%s%s

\n") (org-export-data title info) (if subtitle (format - (if (plist-get info :html-html5-fancy) + (if (and (org-html-html5-p info) + (plist-get info :html-html5-fancy)) "

%s

\n" "\n
\n%s\n") (org-export-data subtitle info)) -- 2.5.0