[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Extra space between list items in HTML export

From: Nick Dokos
Subject: Re: [O] Extra space between list items in HTML export
Date: Mon, 10 Sep 2012 20:52:00 -0400

Richard Stanton <address@hidden> wrote:

> Meanwhile, as I understand it (and as implemented in the old exporter),
> h:2 should mean that only two levels of section headings should be created
> at all. Level 3 should be an itemized list (and therefore, implicitly,
> should not have a number). Thus, h:2 should imply n:2, I believe.

>From my POV, it's not particularly important that the two knobs be
linked: in fact, if they are linked too strongly, there should probably
be just one knob; if they are linked but the linkage is weak, they
become sources of confusion and misunderstanding. I think independent
knobs make things easier most of the time and having to specify them
explicitly in the #+OPTIONS: line helps make things unambiguous (and
they are very useful when one revisits the file in six months, after
having customized a bunch of things that would otherwise change the
behaviour: I don't know about you but it's this kind of thing that gets
me every time).

What is *very* important is that all exporters treat them the *same* way.

With Richard's example[fn:1] and the new exporter, we get different
behavior with HTML and latex (without the num: option or with num:t):

o the second list is unordered in HTML, but enumerated in latex.

o we get third level section numbers decorating the list entries in HTML,
  but not in latex.

Somebody needs to decide what the behavior should be, but then *every*
exporter should behave the same way wrt that set of options. Sure, there
will be situations where it will be impossible to keep them all
compatible. Those will be exceptions, treated and documented as such. In
particular, the common set of options in the manual should be
sacrosanct. If a particular exporter decides to implement a private
option, that's OK (there is a parallel with babel language headers
here): add a description in worg on a page specific to that exporter.

So there'll be three classes of options:

o common - all exporters treat them the "same" way.
o private.
o incompatible - different exporters by necessity treat them differently.

The third set should be as close to empty as humanly possible (and very
carefully documented - in the manual, not on worg - if non-empty).

OTOH, gratuitous differences should be squashed mercilessly.

My 2 cents,

PS. Consistency may be the hobgoblin of little minds, but it's still
    very important. And Emerson said: "A foolish consistency ..."
    in any case :-)


[fn:1] I reproduce it here for convenience:

--8<---------------cut here---------------start------------->8---
#+OPTIONS: h:2 toc:nil

* Example of itemized list
** Blank level 2 header
- List 1
- List 2
- List 3

* Level 3 headings as itemized list, with extra space
** Blank level 2 header
*** List 1
*** List 2
*** List 3

--8<---------------cut here---------------end--------------->8---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]