emacs-orgmode
[Top][All Lists]
Advanced

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

[Orgmode] Re: Feature request (org-empty-line-terminates-plain-lists)


From: Baoqiu Cui
Subject: [Orgmode] Re: Feature request (org-empty-line-terminates-plain-lists)
Date: Mon, 23 Mar 2009 23:15:43 -0700
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (darwin)

Matthew Lundin <address@hidden> writes:

> Carsten,
>
> Matthew Lundin <address@hidden> writes:
>
>> If I may be so bold, I'd like to request an additional setting for
>> org-empty-line-terminates-plain-lists. Namely, I was wondering if it
>> would be possible to add an option whereby 2 empty lines would terminate
>> a plain list.
>
> Please disregard this request. I think I did not identify the problem
> correctly. The problem, instead, lies in the html export.
>
> When a plain list is followed by a paragraph, the list is closed in the
> the export before the paragraph.
>
> --8<---------------cut here---------------start------------->8---
> - Item One
>
> - Item Two
>
> Here is the paragraph.
> --8<---------------cut here---------------end--------------->8---
>
> results in....
>
> ,----
> | <ul>
> | <li>
> | Item One
> | 
> | </li>
> | <li>
> | Item Two
> | 
> | </li>
> | </ul>
> | 
> | <p>Here is the paragraph.
> | </p>
> `----
>
> But when a table follows the list, as in...
>
> --8<---------------cut here---------------start------------->8---
> - Item One
>
> - Item Two
>
> | Table cell | Another table cell |
> --8<---------------cut here---------------end--------------->8---

In my opinion, whether this table should terminate the list or be
included in "Item Two" has to be decided by the indentation level of the
table.  In this case, since there is no indentation at all for the
table, it should terminate the list.  The table would be considered part
of "Item Two" if it is written in the following way

------------------------------------------------------------------------
- Item One

- Item Two

  | Table cell | Another table cell |
------------------------------------------------------------------------

I ran into this little ambiguity problem when I was testing the DocBook
exporter, but have not got chance to resolve this problem.  Similar
problem also exists for literal examples (and maybe other types of
blocks):


------------------------------------------------------------------------
- Item One

- Item Two

  : Some example from a text file
  : Another line in the example
------------------------------------------------------------------------

In this case, the literal example lines should be considered part of
"Item Two".  If the two spaces before ':' do not exist, this literal
example will terminate the list.

Is this reasonable?

Baoqiu





reply via email to

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