From 077a24b8d0c90f864502ac15bce9187de82fa81b Mon Sep 17 00:00:00 2001 From: Rasmus Date: Tue, 16 Dec 2014 13:49:08 +0100 Subject: [PATCH] ox-html.el: Trim list items * ox-html.el (org-html-format-list-item): Trim contents to avoid spurious space. --- lisp/ox-html.el | 2 +- testing/lisp/test-org-list.el | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/ox-html.el b/lisp/ox-html.el index 178642d52..82073dd69 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)) "
")))) (unless (eq type 'descriptive) checkbox) - contents + (org-trim contents) (case type (ordered "") (unordered "") diff --git a/testing/lisp/test-org-list.el b/testing/lisp/test-org-list.el index b9736f4c0..68051306e 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 "" + (equal "" (let (org-html-indent) (with-temp-buffer (insert "