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.
This commit is contained in:
Nicolas Goaziou 2017-01-12 09:54:22 +01:00
parent 909a04e011
commit ee181b3250

View file

@ -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)