From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: scripting challenge (was: Re: HTML export without all
tags) Date: Fri, 25 Sep 2009 15:19:04 +0100 Message-ID: References: <476389.12441.qm@web28308.mail.ukl.yahoo.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MrBdh-0000KJ-K3 for emacs-orgmode@gnu.org; Fri, 25 Sep 2009 10:19:13 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MrBdc-0000Jr-Rv for emacs-orgmode@gnu.org; Fri, 25 Sep 2009 10:19:12 -0400 Received: from [199.232.76.173] (port=60871 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MrBdc-0000Jm-Lm for emacs-orgmode@gnu.org; Fri, 25 Sep 2009 10:19:08 -0400 Received: from mail-ew0-f208.google.com ([209.85.219.208]:62398) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MrBdb-0008Sm-Uy for emacs-orgmode@gnu.org; Fri, 25 Sep 2009 10:19:08 -0400 Received: by ewy4 with SMTP id 4so805336ewy.31 for ; Fri, 25 Sep 2009 07:19:07 -0700 (PDT) In-Reply-To: <476389.12441.qm@web28308.mail.ukl.yahoo.com> 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: Giovanni Ridolfi Cc: Detlef Steuer , emacs-orgmode@gnu.org Hi Giovanni, good catch, no, it does not. This will: perl -ap -e 's/
]*>|<\/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
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/
]*>//g' orgoutput.html > >> simple.html >> > > [OT] comp.perl.group ;-) > > Carsten, > > I'curious (and also a bit provocative ;-), > does your command work also for
tags ? > > Is there a way to remove both
and
> in the same line? > > cheers, > Giovanni > > > > > > > _______________________________________________ > 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