From: Achim Gratz <Stromeko@nexgo.de>
To: emacs-orgmode@gnu.org
Subject: Re: unattractive list spacing in ox-html export
Date: Tue, 24 Jun 2014 19:10:30 +0200 [thread overview]
Message-ID: <87lhsmp721.fsf@Rainer.invalid> (raw)
In-Reply-To: 87ionqctxh.fsf@gmail.com
Eric Schulte writes:
> My browser (recent Firefox) *does* place extra spacing around list
> elements with paragraphs (with no CSS). I assume this is standard. So
> regardless of what browsers should do, Org-mode should handle what they
> actually do.
That's what I was saying, or at least trying to. Let's look at the
following document:
--8<---------------cut here---------------start------------->8---
* Lists w/ parapraphs
** without paragraphs
- some
- short
- list
- entries
This is after the list.
** with paragraphs
- some
- short
- list
- and a long entry
with an extra paragraph.
Plus a second one.
- short entry
This is after the list.
--8<---------------cut here---------------end--------------->8---
So, the standard CSS in the browser (which you can totally change at
least in Firefox) keeps list items together. If it finds a paragraph in
the item, it adds paragraph spacing at the top and bottom. If you put
an explicit first paragraph, then spacing will be added both above and
below that list item. Begin and end of list seems to be handled
specially, but that is only a result of the margins applied to the list
element itself having the same (or larger) value as the ones for the
paragraph collapsing into the largest of these.
> I think consistency here is a win. Maybe adding another rule to the
> Org-mode default CSS would make the situation even better, but
> personally I'm happy with the current look.
If you have truly long paragraphs that may be the case. If there's only
one or two list items that don't fit on a single line, then this looks
horrible. I still think you'd want to keep the list items separated
without extra margin and just add some extra space before explicit
paragraphs in a list (typographically an indentation would be
preferrable, but that doesn't look nice if there are consecutive
paragraphs that only span a single line).
That means the first paragraph should preferrably be implicit and
there should be an extra CSS rule
li>p { margin: .3em 0em 0em 0em /* or 1em for indent */; }
If your patch is kept, the CSS actually gets more complicated and needs
an extra
li>p:first-child {margin: 0em; }
which is probably not recognized by older browsers.
Regards,
Achim.
--
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+
SD adaptations for Waldorf Q V3.00R3 and Q+ V3.54R2:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada
prev parent reply other threads:[~2014-06-24 17:11 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
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 [this message]
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=87lhsmp721.fsf@Rainer.invalid \
--to=stromeko@nexgo.de \
--cc=emacs-orgmode@gnu.org \
/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).