emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] HTML export without all <div ...> tags


From: Carsten Dominik
Subject: Re: [Orgmode] HTML export without all <div ...> tags
Date: Fri, 25 Sep 2009 14:45:06 +0100


On Sep 25, 2009, at 2:00 PM, Detlef Steuer wrote:

Hi!

I'm in the process of adapting cmsimple (www.cmsimple.dk) to use our university's corporate design. Cmsimple in its core is a php script, which takes _one_ html file and creates the complete layout of a site on the fly while splitting the file apart at h[123] levels.

Now I want to create that one html file with org-mode. What else?

If I could get org-mode to export pure html without all the <div> tags I think I am done. But how to explain to orgmode to be dumb?

The variable Org-Export-Html-Style-Include-Default ist set to nil, so no definitions included. Nevertheless the way divs are grouped around headlines seems to disturb cmsimple and its layout.
At least, if I remove all divs the layout is just fine.

Is there a way to get rid of all div tags in exported html?

I guess the easiest would be to just post-process the html file
produced by Org.  For example with perl (untested):

perl -ap -e 's/<div [^>]*>//g' orgoutput.html > simple.html

HTH

- Carsten




reply via email to

[Prev in Thread] Current Thread [Next in Thread]