From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Alex Fu" Subject: Problems exporting literal HTML fragments Date: Mon, 19 Mar 2007 10:21:23 -0400 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15 Content-Transfer-Encoding: Quoted-Printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HTIlI-0000h5-0I for emacs-orgmode@gnu.org; Mon, 19 Mar 2007 10:23:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HTIlF-0000gZ-BE for emacs-orgmode@gnu.org; Mon, 19 Mar 2007 10:22:59 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HTIlF-0000gW-7o for emacs-orgmode@gnu.org; Mon, 19 Mar 2007 09:22:57 -0500 Received: from wr-out-0506.google.com ([64.233.184.225]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from <120571@gmail.com>) id 1HTIjm-0003gy-8W for emacs-orgmode@gnu.org; Mon, 19 Mar 2007 10:21:26 -0400 Received: by wr-out-0506.google.com with SMTP id 76so1249454wra for ; Mon, 19 Mar 2007 07:21:25 -0700 (PDT) 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: emacs-orgmode@gnu.org Hello all, When using the #+TEXT:, #+HTML:, or #BEGIN_HTML...#END_HTML directives t= o = 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=3D"special"> <img src=3D"someimage.jpg"/> Tested on org 4.68, GNU Emacs 22.0.92.1. Kind regards. -- = Alex Fu