From mboxrd@z Thu Jan 1 00:00:00 1970 From: Baoqiu Cui Subject: Re: Feature request (org-empty-line-terminates-plain-lists) Date: Mon, 23 Mar 2009 23:15:43 -0700 Message-ID: References: <877i2g53px.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Llzvj-00052f-QP for emacs-orgmode@gnu.org; Tue, 24 Mar 2009 02:16:07 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Llzve-00051M-HA for emacs-orgmode@gnu.org; Tue, 24 Mar 2009 02:16:06 -0400 Received: from [199.232.76.173] (port=53004 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Llzve-00051H-EG for emacs-orgmode@gnu.org; Tue, 24 Mar 2009 02:16:02 -0400 Received: from main.gmane.org ([80.91.229.2]:53064 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Llzve-00021y-4V for emacs-orgmode@gnu.org; Tue, 24 Mar 2009 02:16:02 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Llzvb-0000eQ-0a for emacs-orgmode@gnu.org; Tue, 24 Mar 2009 06:15:59 +0000 Received: from nat-dip6.cfw-a-gci.corp.yahoo.com ([209.131.62.115]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 24 Mar 2009 06:15:59 +0000 Received: from cbaoqiu by nat-dip6.cfw-a-gci.corp.yahoo.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 24 Mar 2009 06:15:59 +0000 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Matthew Lundin writes: > Carsten, > > Matthew Lundin 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.... > > ,---- > |
    > |
  • > | Item One > | > |
  • > |
  • > | Item Two > | > |
  • > |
> | > |

Here is the paragraph. > |

> `---- > > 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