emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: cezar@mixandgo.ro
To: emacs-orgmode@gnu.org
Subject: Re: Html export suggestion (use of <div>)
Date: Tue, 09 Oct 2007 11:03:58 +0300	[thread overview]
Message-ID: <877ilwaf4h.fsf@myhost.localdomain> (raw)
In-Reply-To: 41c818190710081404u235dca46vb2c53915240631f4@mail.gmail.com

"William Henney" <whenney@gmail.com> 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

  reply	other threads:[~2007-10-09  8:06 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-05 20:57 Html export suggestion (use of <div>) Mike Newman
2007-10-06  8:25 ` cezar
2007-10-08 20:00   ` Mike Newman
2007-10-09  7:56     ` cezar
2007-10-08 21:04   ` William Henney
2007-10-09  8:03     ` cezar [this message]
2007-10-08 13:05 ` Dmitri Minaev
2007-10-15 22:08 ` Mike Newman
2007-10-17  9:13   ` Carsten Dominik
2007-10-17 10:40     ` Bastien
2007-10-18 13:00       ` cezar
  -- strict thread matches above, loose matches on Subject: below --
2007-10-10 13:31 cezar
2007-10-10 14:36 ` cezar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877ilwaf4h.fsf@myhost.localdomain \
    --to=cezar@mixandgo.ro \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).