emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Eric Schulte <schulte.eric@gmail.com>
Cc: Org Mode Mailing List <emacs-orgmode@gnu.org>
Subject: Re: unattractive list spacing in ox-html export
Date: Mon, 23 Jun 2014 22:29:17 +0200	[thread overview]
Message-ID: <87tx7b74ki.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <87tx7bgzdy.fsf@gmail.com> (Eric Schulte's message of "Mon, 23 Jun 2014 16:11:05 -0400")

Hello,

Eric Schulte <schulte.eric@gmail.com> 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 <p> 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

  reply	other threads:[~2014-06-23 20:28 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-23 20:11 unattractive list spacing in ox-html export Eric Schulte
2014-06-23 20:29 ` Nicolas Goaziou [this message]
2014-06-23 21:36   ` Eric Schulte
2014-06-23 22:31     ` Nicolas Goaziou
2014-06-24  0:09       ` Eric Schulte
2014-06-23 20:46 ` Achim Gratz
2014-06-23 21:20   ` Eric Schulte
2014-06-24 12:46     ` Achim Gratz
2014-06-24 13:24       ` Nicolas Goaziou
2014-06-25 14:43         ` Rick Frankel
2014-06-24 13:34       ` Rick Frankel
2014-06-24 13:34       ` Eric Schulte
2014-06-24 17:10         ` Achim Gratz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87tx7b74ki.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=schulte.eric@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).