From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: error when exporting org to html Date: Sat, 7 Feb 2009 15:09:46 +0100 Message-ID: <5E57FB03-171D-43EB-AA8E-CE9A21686609@uva.nl> References: <295368.57544.qm@web28308.mail.ukl.yahoo.com> Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LVnsZ-0001jA-QI for emacs-orgmode@gnu.org; Sat, 07 Feb 2009 09:09:55 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LVnsX-0001iM-RX for emacs-orgmode@gnu.org; Sat, 07 Feb 2009 09:09:55 -0500 Received: from [199.232.76.173] (port=34766 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LVnsV-0001i7-Kr for emacs-orgmode@gnu.org; Sat, 07 Feb 2009 09:09:52 -0500 Received: from mail-ew0-f20.google.com ([209.85.219.20]:42739) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LVnsV-0004ao-1t for emacs-orgmode@gnu.org; Sat, 07 Feb 2009 09:09:51 -0500 Received: by ewy13 with SMTP id 13so1869408ewy.18 for ; Sat, 07 Feb 2009 06:09:50 -0800 (PST) In-Reply-To: <295368.57544.qm@web28308.mail.ukl.yahoo.com> 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: giovanni.ridolfi@yahoo.it Cc: Bernt Hansen , "srandby@gmail.com" , emacs-orgmode@gnu.org On Feb 6, 2009, at 11:39 AM, Giovanni Ridolfi wrote: > 1. OK > Export region from the first heading > C-c @ on the [2009...] heading > C-c C-e h > + exports the region OK OK. > 2. Wishlist > Export region from *before* the 2nd heading > "I'm 1st line 1st heading" > Select region with C-SPC, M-w or with C-c @ > C-c C-e h > + exports region > title: as in #+TITLE > first line:"I'm 1st line 1st heading" > + levels: > 2nd level is

, why not

? > 3rd level is

No, this is not possible, and maybe for such a case you should just go through a separate buffer. It would be quite inconsistent to implement this, because the text before the 2nd heading does not belong to it in any way, it is part of the of the tree before it. There is two locations for text that are special: Before the first heading, and, when exporting a subtree, text before the first child. I believe both are being dealt with correctly now. > > > 2.1. Export region from the 2nd heading > C-c @ on the 2nd level heading > C-c C-e h > + exports the region OK > + The 2nd heading becames the title > + However > - 3rd becomes a

> why not a

? > - from 4th to end are
    > > William Henney pointed out this behaviour [2]. > "I would rather heading 3rd were

    and > that all heading levels be relative to the > root of the sub-tree." > [2] > http://lists.gnu.org/archive/html/emacs-orgmode/2009-01/msg00729.html > > I suspect the exporter rests upon the level of the heading > (**** is forth even if you exports it as the root) > and does not consider it as the root of the level. > The exporter should check the level of the heading > and, in case, it should increase such value and the values of the > subheadings M- <- > until the first heading becomes 1. > (I don't know if such implementation is possible) This is fixed now, thanks. > > > 3. BUG > The lines before the first heading are exported > > Even if in the #+OPTIONS: the 'skip lines' is true, > the lines before the first heading are exported, > if the file is exported with command > C-c C-e h > > Reported also from Scott Randby [1] > [1] http://lists.gnu.org/archive/html/emacs-orgmode/2009-02/msg00164.html > He said that Org-6.09 worked fine. This is fixed as well. > > > 4. OK > The exporter exports a subheading with properties > in compliance with values defined in properties. > C-c @ > C-c C-e h OK. > > > Hope this is complete enough. Yes, this was a useful and complete test case, thanks! - Carsten