summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLawrence Mitchell <wence@gmx.li>2013-05-07 16:56:29 (GMT)
committer Bastien Guerry <bzg@altern.org>2013-05-07 20:04:53 (GMT)
commit69dabd48bcd72bdf047fe7e5491a6b25294e194e (patch)
tree31dd8626b68aa7a13b9c4b1e1e59e82dae015f3b
parent29ab1bb74ef2b0fc81cabc113cebb5e1c2ef8466 (diff)
downloadorg-mode-69dabd48bcd72bdf047fe7e5491a6b25294e194e.zip
org-mode-69dabd48bcd72bdf047fe7e5491a6b25294e194e.tar.gz
ox-html: Ensure space between tag and attribute when closing tags
* lisp/ox-html.el (org-html-close-tag): Add space before attr. We might get an attribute to a tag with no space at its start. Rather than auditing all callers, unconditionally separate the tag from its attributes with a space when closing the tag.
-rw-r--r--lisp/ox-html.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/ox-html.el b/lisp/ox-html.el
index 05b99bf..0379567 100644
--- a/lisp/ox-html.el
+++ b/lisp/ox-html.el
@@ -1301,7 +1301,7 @@ CSS classes, then this prefix can be very useful."
(member dt '("html5" "xhtml5" "<!doctype html>"))))
(defun org-html-close-tag (tag attr info)
- (concat "<" tag (or attr "")
+ (concat "<" tag " " attr
(if (org-html-xhtml-p info) " />" ">")))
(defun org-html--make-attribute-string (attributes)