"William Henney" <[EMAIL PROTECTED]> writes: > > The trouble is, it is currently not possible to wrap a section in a > <div> when you _do_ need it. At least, I tried to do this with @<div> > ... @</div> and it produces incorrectly nested tags for the case when > an org heading is mapped onto an html list item (e.g., <div > class="foo"><li>Contents of org section</div></li>). This is because > the closing </div> 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 <div class="foo"><ul> ... </ul></div> when you can have <ul class="foo"> ... </ul>. > >> 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: > > <h3>HEADER TEXT</h3> > <p>BODY TEXT</p> > <p>MORE BODY TEXT</p> This looks ok. > > whereas sometimes it is represented as a list item: > > <li>HEADER TEXT<br>BODY TEXT</li>. 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 _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode