emacs-orgmode
[Top][All Lists]
Advanced

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

Re: scripting challenge (was: Re: [Orgmode] HTML export without all <div


From: Carsten Dominik
Subject: Re: scripting challenge (was: Re: [Orgmode] HTML export without all <div ...> tags)
Date: Fri, 25 Sep 2009 15:19:04 +0100

Hi Giovanni,

good catch, no, it does not.  This will:

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

Many divs may be in the same ling because of the /g switch on the substitution command. It causes the rest of the line after the match to be parsed again.

- Carsten

On Sep 25, 2009, at 3:15 PM, Giovanni Ridolfi wrote:

If I could get org-mode to export pure html without
all the <div> tags I think I am done.
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


[OT] comp.perl.group ;-)

Carsten,

I'curious (and also a bit provocative ;-),
does your command work also for </div> tags ?

Is there a way to remove both <div> and </div>
in the same line?

cheers,
Giovanni






_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-orgmode





reply via email to

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