Hi,
I use CSS to make inlined lists in html:
#text-sec ul {margin: 0; padding: 0; list-style: none;}
#text-sec li {display: inline;}
#text-sec li:after {content: ", ";}
#text-sec li:last-child:after {content: "";}
However, since (list-)items are formatted like
<li>whatever
</li>
CSS adds a spurious space in front of my comma... Anybody feel strongly
in favor of keeping this newline? Or can I push this patch?
—Rasmus
--
C is for Cookie
>From c990d10b6a649e169ad6bfae61063b597d735771 Mon Sep 17 00:00:00 2001
From: Rasmus <[email protected]>
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 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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>")
--
2.1.3