summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRasmus <rasmus@gmx.us>2014-12-16 12:49:08 (GMT)
committer Rasmus <rasmus@gmx.us>2014-12-20 22:32:44 (GMT)
commit077a24b8d0c90f864502ac15bce9187de82fa81b (patch)
tree9b5dccb63cff4c79c3aed179b6ca02fad0969cea
parent442216871a72dfe79397432223349fbf5a055558 (diff)
downloadorg-mode-master.zip
org-mode-master.tar.gz
ox-html.el: Trim list itemsHEADmaster
* ox-html.el (org-html-format-list-item): Trim contents to avoid spurious space.
-rw-r--r--lisp/ox-html.el2
-rw-r--r--testing/lisp/test-org-list.el2
2 files changed, 2 insertions, 2 deletions
diff --git a/lisp/ox-html.el b/lisp/ox-html.el
index 178642d..82073dd 100644
--- a/lisp/ox-html.el
+++ b/lisp/ox-html.el
@@ -2508,7 +2508,7 @@ INFO is a plist holding contextual information. See
class (concat checkbox term))
"<dd>"))))
(unless (eq type 'descriptive) checkbox)
- contents
+ (org-trim contents)
(case type
(ordered "</li>")
(unordered "</li>")
diff --git a/testing/lisp/test-org-list.el b/testing/lisp/test-org-list.el
index b9736f4..6805130 100644
--- a/testing/lisp/test-org-list.el
+++ b/testing/lisp/test-org-list.el
@@ -792,7 +792,7 @@
(ert-deftest test-org-list/to-html ()
"Test `org-list-to-html' specifications."
(should
- (equal "<ul class=\"org-ul\">\n<li>a\n</li>\n</ul>"
+ (equal "<ul class=\"org-ul\">\n<li>a</li>\n</ul>"
(let (org-html-indent)
(with-temp-buffer
(insert "<!-- BEGIN RECEIVE ORGLST name -->