From b6b1e35f33093f45df1e8973d90889a53b03d53b Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Tue, 24 Jan 2017 22:22:47 +0100 Subject: [PATCH] ox-html: Remove

tag around block images when using HTML5 * lisp/ox-html.el (org-html--wrap-image): Do not add a spurious

tag when using

to mark images. Reported-by: Matt Price --- lisp/ox-html.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lisp/ox-html.el b/lisp/ox-html.el index f46d57064..042145559 100644 --- a/lisp/ox-html.el +++ b/lisp/ox-html.el @@ -1601,12 +1601,12 @@ INFO is a plist used as a communication channel. When optional arguments CAPTION and LABEL are given, use them for caption and \"id\" attribute." (let ((html5-fancy (org-html--html5-fancy-p info))) - (format (if html5-fancy "\n%s%s\n
" - "\n%s%s\n") + (format (if html5-fancy "\n\n%s%s\n" + "\n\n%s%s\n") ;; ID. (if (org-string-nw-p label) (format " id=\"%s\"" label) "") ;; Contents. - (format "\n

%s

" contents) + (if html5-fancy contents (format "

%s

" contents)) ;; Caption. (if (not (org-string-nw-p caption)) "" (format (if html5-fancy "\n
%s
"