From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: [ox-html, patch] trim contents on list-items Date: Tue, 16 Dec 2014 13:56:15 +0100 Message-ID: <87oar3ycr4.fsf@gmx.us> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45838) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0rg4-0003pF-Tt for emacs-orgmode@gnu.org; Tue, 16 Dec 2014 07:56:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y0rfy-0000de-M1 for emacs-orgmode@gnu.org; Tue, 16 Dec 2014 07:56:36 -0500 Received: from plane.gmane.org ([80.91.229.3]:43806) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0rfy-0000dY-E8 for emacs-orgmode@gnu.org; Tue, 16 Dec 2014 07:56:30 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Y0rfx-00035y-H1 for emacs-orgmode@gnu.org; Tue, 16 Dec 2014 13:56:29 +0100 Received: from 109.201.154.177 ([109.201.154.177]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 16 Dec 2014 13:56:29 +0100 Received: from rasmus by 109.201.154.177 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 16 Dec 2014 13:56:29 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit 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
  • whatever
  • 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 --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-ox-html.el-Trim-list-items.patch >From c990d10b6a649e169ad6bfae61063b597d735771 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 +- 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)) "
    ")))) (unless (eq type 'descriptive) checkbox) - contents + (org-trim contents) (case type (ordered "") (unordered "") -- 2.1.3 --=-=-=--