Browse Source

ox-html: Use correct "br" tag for subtitle

* lisp/ox-html.el (org-html-template): Use correct "br" tag depending
  on :html-doctype.

Reported-by: Olivier Berger <olivier.berger@telecom-sudparis.eu>
<http://permalink.gmane.org/gmane.emacs.orgmode/114546>
Rasmus 7 years ago
parent
commit
3650c980d8
1 changed files with 2 additions and 1 deletions
  1. 2 1
      lisp/ox-html.el

+ 2 - 1
lisp/ox-html.el

@@ -2034,7 +2034,8 @@ holding export options."
 	      (format
 	      (format
 	       (if html5-fancy
 	       (if html5-fancy
 		   "<p class=\"subtitle\">%s</p>\n"
 		   "<p class=\"subtitle\">%s</p>\n"
-		 "\n<br>\n<span class=\"subtitle\">%s</span>\n")
+		 (concat "\n" (org-html-close-tag "br" nil info) "\n"
+			 "<span class=\"subtitle\">%s</span>\n"))
 	       (org-export-data subtitle info))
 	       (org-export-data subtitle info))
 	    "")))))
 	    "")))))
    contents
    contents