emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Giovanni Ridolfi <giovanni.ridolfi@yahoo.it>
Cc: Detlef Steuer <steuer@unibwh.de>, emacs-orgmode@gnu.org
Subject: Re: scripting challenge (was: Re: HTML export without all <div ...> tags)
Date: Fri, 25 Sep 2009 15:19:04 +0100	[thread overview]
Message-ID: <C66DF749-B9D0-4DB6-A190-CDDC47299EAB@gmail.com> (raw)
In-Reply-To: <476389.12441.qm@web28308.mail.ukl.yahoo.com>

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.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

  reply	other threads:[~2009-09-25 14:19 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-25 13:00 HTML export without all <div ...> tags Detlef Steuer
2009-09-25 13:32 ` Matt Lundin
2009-09-25 13:53   ` R: " Giovanni Ridolfi
2009-09-25 13:45 ` Carsten Dominik
2009-09-25 14:06   ` Matt Lundin
2009-09-25 14:15   ` scripting challenge (was: Re: HTML export without all <div ...> tags) Giovanni Ridolfi
2009-09-25 14:19     ` Carsten Dominik [this message]
2009-09-25 14:32       ` scripting challenge Bernt Hansen

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=C66DF749-B9D0-4DB6-A190-CDDC47299EAB@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=giovanni.ridolfi@yahoo.it \
    --cc=steuer@unibwh.de \
    /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).