From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Patch to fix two bugs in HTML/DocBook exporters Date: Wed, 8 Apr 2009 17:16:22 +0200 Message-ID: <6BB5BE3D-4B4D-4D14-BB8C-2F955A93E041@gmail.com> References: Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LrZVz-0005rx-QB for emacs-orgmode@gnu.org; Wed, 08 Apr 2009 11:16:35 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LrZVu-0005fK-Ke for emacs-orgmode@gnu.org; Wed, 08 Apr 2009 11:16:35 -0400 Received: from [199.232.76.173] (port=46950 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LrZVu-0005eu-EB for emacs-orgmode@gnu.org; Wed, 08 Apr 2009 11:16:30 -0400 Received: from wa-out-1112.google.com ([209.85.146.183]:11179) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LrZVu-0004qU-17 for emacs-orgmode@gnu.org; Wed, 08 Apr 2009 11:16:30 -0400 Received: by wa-out-1112.google.com with SMTP id j40so71813wah.26 for ; Wed, 08 Apr 2009 08:16:29 -0700 (PDT) In-Reply-To: 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: Baoqiu Cui Cc: emacs-orgmode@gnu.org Hi Baoqiu, On Apr 6, 2009, at 11:37 PM, Baoqiu Cui wrote: > Hi Carsten, > > During the weekend, I found and fixed two bugs that exist in > HTML/DocBook exporters (see the following descriptions). I am > attaching > a patch for the fixes at the end of this email. > > 1. Bug One: two consecutive lists with different list types at the > same > level are exported as *one* list. For example, the following two > lists > > 1. Ordered List Item 1 > 2. Ordered List Item 2 > > - Itemized List Item 1 > - Itemized List Item 2 > - Itemized List Item 3 This is, actually, not a bug but on purpose. List boundaries are set by indentation, and the list type is set by the first item. I prefer to keep it that way. In the same way, the actual numbers in an ordered list are ignored and the list is renumbered on export. > > are exported as one ordered list in HTML (see below, similar problem > also exist in DocBook). > > :
    > :
  1. > : Ordered List Item 1 > :
  2. > :
  3. > : Ordered List Item 2 > : > :
  4. > :
  5. > : Itemized List Item 1 > :
  6. > :
  7. > : Itemized List Item 2 > :
  8. > :
  9. > : Itemized List Item 3 > : > :
  10. > :
> > 2. Bug Two: a paragraph *immediately* after a block like quote, verse, > centered block, example, etc. is not wrapped into paragraph tags > (

...

in HTML or ... in DocBook). While it is > not > a big deal for HTML exporter, this bug makes exported DocBook XML > document invalid. > > The following lines can reproduce this bug: > > : Code line one > : Code line two > This is a paragraph immediately after the above code block without > an > empty line before it, and it is NOT wrapped in a paragraph (

in > HTML or in DocBook) in exported format. > > Please let me know if you see any problems in the fix. I would like to fix this bug, and if you send me a patch just for this, I'd be happy to apply it. - Carsten