From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: unattractive list spacing in ox-html export Date: Mon, 23 Jun 2014 22:29:17 +0200 Message-ID: <87tx7b74ki.fsf@nicolasgoaziou.fr> References: <87tx7bgzdy.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49010) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzArB-0004MH-65 for emacs-orgmode@gnu.org; Mon, 23 Jun 2014 16:28:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WzAr1-0001e8-2C for emacs-orgmode@gnu.org; Mon, 23 Jun 2014 16:28:49 -0400 Received: from relay5-d.mail.gandi.net ([2001:4b98:c:538::197]:34992) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzAr0-0001e1-Rn for emacs-orgmode@gnu.org; Mon, 23 Jun 2014 16:28:38 -0400 In-Reply-To: <87tx7bgzdy.fsf@gmail.com> (Eric Schulte's message of "Mon, 23 Jun 2014 16:11:05 -0400") 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: Eric Schulte Cc: Org Mode Mailing List Hello, Eric Schulte writes: > When the lists with spaces in some (but not all) elements are exported > to HTML, they result in unattractive spacing. This is due to the use of > paragraph tags in some list elements, which cause large spaces between > some list elements but no spaces between others. > > I believe something should be done to ensure consistent spacing in the > HTML export of list elements. I'd suggest that every list element > should be wrapped in a paragraph tag, but maybe a different solution is > more appropriate. Actually, there's a special case in ox-html.el (see line 2960) that prevents the first paragraph in an item to get

tag. I guess that this rule is meant for short lists, e.g., - item 1 - item 2 where you do not want a new paragraph for each item. So, the special case could be extended to also check if there's another element in the item before ignoring the tags. Regards, -- Nicolas Goaziou