From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Problems exporting literal HTML fragments Date: Tue, 20 Mar 2007 13:07:50 +0100 Message-ID: <79afa19e8ac65f52fb579d91a9b89246@science.uva.nl> References: Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HTd9g-0003c4-EG for emacs-orgmode@gnu.org; Tue, 20 Mar 2007 08:09:32 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HTd9e-0003bj-4w for emacs-orgmode@gnu.org; Tue, 20 Mar 2007 08:09:32 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HTd9d-0003bg-Ry for emacs-orgmode@gnu.org; Tue, 20 Mar 2007 07:09:29 -0500 Received: from korteweg.uva.nl ([146.50.98.70]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HTd84-0000tA-CF for emacs-orgmode@gnu.org; Tue, 20 Mar 2007 08:07:52 -0400 In-Reply-To: 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: Alex Fu Cc: emacs-orgmode@gnu.org Thanks for the report, I am fixing these issues for the next release. - Carsten On Mar 19, 2007, at 15:21, Alex Fu wrote: > Hello all, > > When using the #+TEXT:, #+HTML:, or #BEGIN_HTML...#END_HTML directives > to output literal html fragments, the resulting markup is enclosed in > a paragraph with

and

tags. Whenever I need something else, I > am forced to inhibit their generation in clumsy ways, "cancelling out" > the opening and closing paragraph tags like this: > > #+TEXT: @

@

@Back to > main@@

@

> > or > > #+HTML:

Back to > main

> > Thus, I think it would be a good idea *not* to enclose literal html > fragments in a paragraph (

...

), given that the markup is > already being controlled through these directives. > > * * * > > Possible bug: > > #+BEGIN_HTML...#+END_HTML blocks are not correctly interpreted if they > consist of multiline text. Only 1 line --the one exactly above > #+END_HTML-- is exported literally. > > For example: > > #+BEGIN_HTML >

> #+END_HTML > > does right thing (well, almost, because of having to cancel out

> tags), producing: > >

> > However, > > #+BEGIN_HTML >

>

>

> #+END_HTML > > produces: > >

> </p><div id="special"> > <img src="someimage.jpg"/> > > > Tested on org 4.68, GNU Emacs 22.0.92.1. > > Kind regards. > > -- > Alex Fu > > > _______________________________________________ > Emacs-orgmode mailing list > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > -- Carsten Dominik Sterrenkundig Instituut "Anton Pannekoek" Universiteit van Amsterdam Kruislaan 403 NL-1098SJ Amsterdam phone: +31 20 525 7477