From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kelvin Hu Subject: Bug: html quoting tags are transformed after exporting [8.0.2 (8.0.2-10-g3e1d83-elpa @ d:/SDTs/Emacs/lisp/org/)] Date: Fri, 17 May 2013 22:49:29 +0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b10cea113f0c304dceb17c8 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:44935) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UdLyO-00048E-0P for emacs-orgmode@gnu.org; Fri, 17 May 2013 10:49:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UdLyM-0002Lp-Ky for emacs-orgmode@gnu.org; Fri, 17 May 2013 10:49:31 -0400 Received: from mail-ie0-x22c.google.com ([2607:f8b0:4001:c03::22c]:60957) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UdLyM-0002Li-BT for emacs-orgmode@gnu.org; Fri, 17 May 2013 10:49:30 -0400 Received: by mail-ie0-f172.google.com with SMTP id 16so9347191iea.17 for ; Fri, 17 May 2013 07:49:29 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --047d7b10cea113f0c304dceb17c8 Content-Type: text/plain; charset=UTF-8 Hi all, First of all, I am really appreciate your good work - org mode. Currently I meet something wrong when I am trying to export an org buffer into html, as org manual described(http://orgmode.org/org.html#Quoting-HTML-tags), html tags quoted with "@" should be exported as tags, but not transformed to "<" and ">". Now assume we have following contents: *- @some text@* then I do exporting with following code(executed in that org buffer): *(org-export-as 'html nil nil t nil)* the output is: *
  • @<a href="somewhere">some text@</a>
* As you see, the quoted tag "" is exported as transformed but not original html tag. Hope my description is not ambiguous, and it can do a little help for you to fix this issue. Thanks & Regards, Kelvin Emacs : GNU Emacs 24.3.1 (i386-mingw-nt6.1.7601) of 2013-03-18 on MARVIN Package: Org-mode version 8.0.2 (8.0.2-10-g3e1d83-elpa @ d:/SDTs/Emacs/lisp/org/) --047d7b10cea113f0c304dceb17c8 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi all,

First of all, I am really appreciate your g= ood work - org mode.

Currently I meet something wrong when I am tryi= ng to export an org
buffer into html, as org manual
described(
http://orgmode.org/org.h= tml#Quoting-HTML-tags), html tags
quoted with "@" should be exported as tags, but not transformed t= o
"&lt;" and "&gt;". Now assume we have fol= lowing contents:

- @<a href=3D"somewhere">some te= xt@</a>

then I do exporting with following code(executed in that org buffer):
(org-export-as 'html nil nil t nil)

the output is:<= br>
<ul class=3D"org-ul">
<li>@&lt;a hre= f=3D"somewhere"&gt;some text@&lt;/a&gt;
</li>
</ul>


As you see, the quoted tag "<= a>" is exported as transformed but not
original html tag.
Hope my description is not ambiguous, and it can do a little help for
you to fix this issue.

Thanks & Regards,
Kelvin


Em= acs=C2=A0 : GNU Emacs 24.3.1 (i386-mingw-nt6.1.7601)
=C2=A0of 2013-03-18= on MARVIN
Package: Org-mode version 8.0.2 (8.0.2-10-g3e1d83-elpa @ d:/S= DTs/Emacs/lisp/org/)

--047d7b10cea113f0c304dceb17c8-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: Bug: html quoting tags are transformed after exporting [8.0.2 (8.0.2-10-g3e1d83-elpa @ d:/SDTs/Emacs/lisp/org/)] Date: Sat, 18 May 2013 10:12:38 +0800 Message-ID: <874ne1nii1.fsf@ericabrahamsen.net> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:53112) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UdWdo-0008Ej-8N for emacs-orgmode@gnu.org; Fri, 17 May 2013 22:13:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UdWdj-00054o-2V for emacs-orgmode@gnu.org; Fri, 17 May 2013 22:13:00 -0400 Received: from plane.gmane.org ([80.91.229.3]:41835) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UdWdi-00054e-RP for emacs-orgmode@gnu.org; Fri, 17 May 2013 22:12:54 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UdWdh-0001aB-SQ for emacs-orgmode@gnu.org; Sat, 18 May 2013 04:12:53 +0200 Received: from 114.250.120.47 ([114.250.120.47]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 18 May 2013 04:12:53 +0200 Received: from eric by 114.250.120.47 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 18 May 2013 04:12:53 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Kelvin Hu writes: > Hi all, > > First of all, I am really appreciate your good work - org mode. > > Currently I meet something wrong when I am trying to export an org > buffer into html, as org manual > described(http://orgmode.org/org.html#Quoting-HTML-tags), html tags > quoted with "@" should be exported as tags, but not transformed to > "<" and ">". Now assume we have following contents: > > - @some text@ The syntax for this has changed, now any backend-specific blocks can be exported with @@backend:foo@@. So yours should be: @@html:some text@@ The manual's wrong, I think: if you look at the ascii or latex export sections they mention this syntax, but it looks like html got left behind. Yours, Eric > then I do exporting with following code(executed in that org buffer): > > (org-export-as 'html nil nil t nil) > > the output is: > >
    >
  • @<a href="somewhere">some text@</a> >
  • >
> > As you see, the quoted tag "" is exported as transformed but not > original html tag. > > Hope my description is not ambiguous, and it can do a little help for > you to fix this issue. > > Thanks & Regards, > Kelvin > > Emacs : GNU Emacs 24.3.1 (i386-mingw-nt6.1.7601) > of 2013-03-18 on MARVIN > Package: Org-mode version 8.0.2 (8.0.2-10-g3e1d83-elpa @ > d:/SDTs/Emacs/lisp/org/) From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: Bug: html quoting tags are transformed after exporting [8.0.2 (8.0.2-10-g3e1d83-elpa @ d:/SDTs/Emacs/lisp/org/)] Date: Sat, 18 May 2013 10:22:11 +0800 Message-ID: <87zjvtm3ho.fsf@ericabrahamsen.net> References: <874ne1nii1.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:54358) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UdWnA-0000yR-1y for emacs-orgmode@gnu.org; Fri, 17 May 2013 22:22:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UdWn3-0007n3-LG for emacs-orgmode@gnu.org; Fri, 17 May 2013 22:22:39 -0400 Received: from plane.gmane.org ([80.91.229.3]:43914) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UdWn3-0007mx-Do for emacs-orgmode@gnu.org; Fri, 17 May 2013 22:22:33 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UdWmw-0001Dj-I2 for emacs-orgmode@gnu.org; Sat, 18 May 2013 04:22:26 +0200 Received: from 114.250.120.47 ([114.250.120.47]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 18 May 2013 04:22:26 +0200 Received: from eric by 114.250.120.47 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 18 May 2013 04:22:26 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Eric Abrahamsen writes: > Kelvin Hu writes: > >> Hi all, >> >> First of all, I am really appreciate your good work - org mode. >> >> Currently I meet something wrong when I am trying to export an org >> buffer into html, as org manual >> described(http://orgmode.org/org.html#Quoting-HTML-tags), html tags >> quoted with "@" should be exported as tags, but not transformed to >> "<" and ">". Now assume we have following contents: >> >> - @some text@ > > The syntax for this has changed, now any backend-specific blocks can be > exported with @@backend:foo@@. So yours should be: > > @@html:some text@@ > > The manual's wrong, I think: if you look at the ascii or latex export > sections they mention this syntax, but it looks like html got left > behind. > > Yours, > Eric A documentation patch to that effect... E --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-org.texi-Correct-syntax-for-exporting-HTML-fragments.patch >From 14d5a493375197bcdcbd0b292e1d9990f12cb83a Mon Sep 17 00:00:00 2001 From: Eric Abrahamsen Date: Sat, 18 May 2013 10:20:33 +0800 Subject: [PATCH] org.texi: Correct syntax for exporting HTML fragments --- doc/org.texi | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/org.texi b/doc/org.texi index 1c8b835..6f0afed 100644 --- a/doc/org.texi +++ b/doc/org.texi @@ -11133,11 +11133,11 @@ to @code{nil} will not insert any postamble. @subsection Quoting HTML tags Plain @samp{<} and @samp{>} are always transformed to @samp{<} and -@samp{>} in HTML export. If you want to include simple HTML tags -which should be interpreted as such, mark them with @samp{@@} as in -@samp{@@bold text@@}. Note that this really works only for -simple tags. For more extensive HTML that should be copied verbatim to -the exported file use either +@samp{>} in HTML export. If you want to include simple HTML tags which +should be interpreted as such, mark them with @samp{@@@@html:} as in +@samp{@@@@html:bold text@@@@}. Note that this really works only for +simple tags. For more extensive HTML that should be copied verbatim to the +exported file use either @cindex #+HTML @cindex #+BEGIN_HTML -- 1.8.2.3 --=-=-=-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: html quoting tags are transformed after exporting [8.0.2 (8.0.2-10-g3e1d83-elpa @ d:/SDTs/Emacs/lisp/org/)] Date: Sat, 18 May 2013 19:56:47 +0200 Message-ID: <8761ygf9y8.fsf@gmail.com> References: <874ne1nii1.fsf@ericabrahamsen.net> <87zjvtm3ho.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:58118) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UdlN9-0001mJ-Tz for emacs-orgmode@gnu.org; Sat, 18 May 2013 13:56:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UdlN8-0005gx-Qh for emacs-orgmode@gnu.org; Sat, 18 May 2013 13:56:47 -0400 Received: from mail-wg0-x22d.google.com ([2a00:1450:400c:c00::22d]:45108) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UdlN8-0005gt-Jp for emacs-orgmode@gnu.org; Sat, 18 May 2013 13:56:46 -0400 Received: by mail-wg0-f45.google.com with SMTP id n12so340992wgh.12 for ; Sat, 18 May 2013 10:56:45 -0700 (PDT) In-Reply-To: <87zjvtm3ho.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Sat, 18 May 2013 10:22:11 +0800") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric Abrahamsen Cc: emacs-orgmode@gnu.org Hello, Eric Abrahamsen writes: > Eric Abrahamsen writes: > >> Kelvin Hu writes: >> >>> Hi all, >>> >>> First of all, I am really appreciate your good work - org mode. >>> >>> Currently I meet something wrong when I am trying to export an org >>> buffer into html, as org manual >>> described(http://orgmode.org/org.html#Quoting-HTML-tags), html tags >>> quoted with "@" should be exported as tags, but not transformed to >>> "<" and ">". Now assume we have following contents: >>> >>> - @some text@ >> >> The syntax for this has changed, now any backend-specific blocks can be >> exported with @@backend:foo@@. So yours should be: >> >> @@html:some text@@ >> >> The manual's wrong, I think: if you look at the ascii or latex export >> sections they mention this syntax, but it looks like html got left >> behind. >> >> Yours, >> Eric > > A documentation patch to that effect... Applied, with a slight twist, as the syntax is not limited to simple tags. Thank you. Regards, -- Nicolas Goaziou From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kelvin Hu Subject: Re: Bug: html quoting tags are transformed after exporting [8.0.2 (8.0.2-10-g3e1d83-elpa @ d:/SDTs/Emacs/lisp/org/)] Date: Mon, 20 May 2013 15:04:51 +0800 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e89a8f234a51f3e0e404dd20f2ce Return-path: Received: from eggs.gnu.org ([208.118.235.92]:59273) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UeK9O-0007xP-TF for emacs-orgmode@gnu.org; Mon, 20 May 2013 03:04:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UeK9N-0003rJ-N3 for emacs-orgmode@gnu.org; Mon, 20 May 2013 03:04:54 -0400 Received: from mail-ia0-x236.google.com ([2607:f8b0:4001:c02::236]:35226) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UeK9N-0003rC-Hk for emacs-orgmode@gnu.org; Mon, 20 May 2013 03:04:53 -0400 Received: by mail-ia0-f182.google.com with SMTP id z3so7256324iad.13 for ; Mon, 20 May 2013 00:04:52 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --e89a8f234a51f3e0e404dd20f2ce Content-Type: text/plain; charset=UTF-8 Hi, Thanks for your quick replies, I have not subscribed the org mailing list yet, so I had to search this mailing list and then found your nice solution, and sorry for the late reply. Usually I read org manual through org mode's official website, seems now the description of html quoting( http://orgmode.org/org.html#Quoting-HTML-tags) is still unchanged, maybe some extra effort is needed to update this page? and I noticed the patch is modifying **org.texi**, but I cannot find it in my org mode package (I installed org mode through emacs' package management system), so where can I find this file? Thanks in advance, Kelvin --e89a8f234a51f3e0e404dd20f2ce Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

Thanks for your quick replies, = I have not subscribed the org mailing list yet, so I had to search this mai= ling list and then found your nice solution, and sorry for the late reply.<= br>
Usually I read org manual through org mode's official we= bsite, seems now the description of html quoting(http://orgmode.org/org.html#Quoting-HTML-ta= gs) is still unchanged, maybe some extra effort is needed to update thi= s page?

and I noticed the patch is modifying **org.texi**, but I can= not find it in my org mode package (I installed org mode through emacs'= package management system), so where can I find this file?

Thanks in advance,
Kelvin
--e89a8f234a51f3e0e404dd20f2ce--