From mboxrd@z Thu Jan 1 00:00:00 1970 From: cezar@mixandgo.ro Subject: Re: Html export suggestion (use of
) Date: Tue, 09 Oct 2007 11:03:58 +0300 Message-ID: <877ilwaf4h.fsf@myhost.localdomain> References: <20071005215715.21604ade@newmanfamily.me.uk> <874ph4wsyr.fsf@myhost.localdomain> <41c818190710081404u235dca46vb2c53915240631f4@mail.gmail.com> 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 1IfA74-0006OR-JV for emacs-orgmode@gnu.org; Tue, 09 Oct 2007 04:06:46 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IfA74-0006OF-2W for emacs-orgmode@gnu.org; Tue, 09 Oct 2007 04:06:46 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IfA73-0006OC-W1 for emacs-orgmode@gnu.org; Tue, 09 Oct 2007 04:06:46 -0400 Received: from main.gmane.org ([80.91.229.2] 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 1IfA73-00031R-8f for emacs-orgmode@gnu.org; Tue, 09 Oct 2007 04:06:45 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IfA6q-0007RO-Mt for emacs-orgmode@gnu.org; Tue, 09 Oct 2007 08:06:32 +0000 Received: from dyn-86.105.65.100.tm.upcnet.ro ([86.105.65.100]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 09 Oct 2007 08:06:32 +0000 Received: from cezar by dyn-86.105.65.100.tm.upcnet.ro with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 09 Oct 2007 08:06:32 +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 "William Henney" writes: > > The trouble is, it is currently not possible to wrap a section in a >
when you _do_ need it. At least, I tried to do this with @
> ... @
and it produces incorrectly nested tags for the case when > an org heading is mapped onto an html list item (e.g.,
class="foo">
  • Contents of org section
  • ). This is because > the closing
    is interpreted as being inside the section, rather > than outside it. I agree that this should be an option. Adding divs tou your html. Why would you need a
      ...
    when you can have
      ...
    . > >> 2. You shouldn't use divs for presentation's sake. Why not make each >> subsection a different class or sumthin. >> > > How would that work without divs? The problem is (I think) that > sometimes an org section is represented in html as a header plus > following text: > >

    HEADER TEXT

    >

    BODY TEXT

    >

    MORE BODY TEXT

    This looks ok. > > whereas sometimes it is represented as a list item: > >
  • HEADER TEXT
    BODY TEXT
  • . This is bad. > > So, in the first case one cannot apply a class to the whole section, > since there is no enclosing HTML element. In the second place, you > don't have that problem, but now it is impossible to apply a class to > just the header. I don't agree. You can apply whatever styling you like to the whole section. Of course you cannot have different styles for different sections unless you use classes. > > What would be nice would be if there was an option for (some) tags to > be applied as classes in the exported html. True. Cheers, Cezar