Browse Source

ox-html: Remove spurious white space when closing a tag

* lisp/ox-html.el (org-html-close-tag): Remove spurious white space
  when no attribute is given.  Add a docstring.
Nicolas Goaziou 8 years ago
parent
commit
ee181b3250
1 changed files with 5 additions and 1 deletions
  1. 5 1
      lisp/ox-html.el

+ 5 - 1
lisp/ox-html.el

@@ -1566,7 +1566,11 @@ INFO is the current state of the export process, as a plist."
        (org-html-html5-p info)))
 
 (defun org-html-close-tag (tag attr info)
-  (concat "<" tag " " attr
+  "Close TAG.
+ATTR specifies additional attributes, as a string.  INFO is
+a property list containing current export state."
+  (concat "<" tag
+	  (org-string-nw-p (concat " " attr))
 	  (if (org-html-xhtml-p info) " />" ">")))
 
 (defun org-html-doctype (info)