ox-html.el: Trim list items
* ox-html.el (org-html-format-list-item): Trim contents to avoid spurious space.
This commit is contained in:
parent
442216871a
commit
077a24b8d0
|
@ -2508,7 +2508,7 @@ INFO is a plist holding contextual information. See
|
||||||
class (concat checkbox term))
|
class (concat checkbox term))
|
||||||
"<dd>"))))
|
"<dd>"))))
|
||||||
(unless (eq type 'descriptive) checkbox)
|
(unless (eq type 'descriptive) checkbox)
|
||||||
contents
|
(org-trim contents)
|
||||||
(case type
|
(case type
|
||||||
(ordered "</li>")
|
(ordered "</li>")
|
||||||
(unordered "</li>")
|
(unordered "</li>")
|
||||||
|
|
|
@ -792,7 +792,7 @@
|
||||||
(ert-deftest test-org-list/to-html ()
|
(ert-deftest test-org-list/to-html ()
|
||||||
"Test `org-list-to-html' specifications."
|
"Test `org-list-to-html' specifications."
|
||||||
(should
|
(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)
|
(let (org-html-indent)
|
||||||
(with-temp-buffer
|
(with-temp-buffer
|
||||||
(insert "<!-- BEGIN RECEIVE ORGLST name -->
|
(insert "<!-- BEGIN RECEIVE ORGLST name -->
|
||||||
|
|
Loading…
Reference in New Issue