From ee181b3250834088f3a2f950b453202814913c80 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Thu, 12 Jan 2017 09:54:22 +0100 Subject: [PATCH] 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. --- lisp/ox-html.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lisp/ox-html.el b/lisp/ox-html.el index a7ddbcd23..9d1234b8f 100644 --- a/lisp/ox-html.el +++ b/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) -- 2.11.4.GIT