emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: html quoting tags are transformed after exporting [8.0.2 (8.0.2-10-g3e1d83-elpa @ d:/SDTs/Emacs/lisp/org/)]
@ 2013-05-17 14:49 Kelvin Hu
  2013-05-18  2:12 ` Eric Abrahamsen
  2013-05-20  7:04 ` Kelvin Hu
  0 siblings, 2 replies; 5+ messages in thread
From: Kelvin Hu @ 2013-05-17 14:49 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 987 bytes --]

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:

*- @<a href="somewhere">some text@</a>*

then I do exporting with following code(executed in that org buffer):

*(org-export-as 'html nil nil t nil)*

the output is:

*<ul class="org-ul">
<li>@&lt;a href="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


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/)

[-- Attachment #2: Type: text/html, Size: 1354 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Bug: html quoting tags are transformed after exporting [8.0.2 (8.0.2-10-g3e1d83-elpa @ d:/SDTs/Emacs/lisp/org/)]
  2013-05-17 14:49 Bug: html quoting tags are transformed after exporting [8.0.2 (8.0.2-10-g3e1d83-elpa @ d:/SDTs/Emacs/lisp/org/)] Kelvin Hu
@ 2013-05-18  2:12 ` Eric Abrahamsen
  2013-05-18  2:22   ` Eric Abrahamsen
  2013-05-20  7:04 ` Kelvin Hu
  1 sibling, 1 reply; 5+ messages in thread
From: Eric Abrahamsen @ 2013-05-18  2:12 UTC (permalink / raw)
  To: emacs-orgmode

Kelvin Hu <ini.kelvin@gmail.com> 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 
> "&lt;" and "&gt;". Now assume we have following contents:
>
> - @<a href="somewhere">some text@</a>

The syntax for this has changed, now any backend-specific blocks can be
exported with @@backend:foo@@. So yours should be:

@@html:<a href="somewhere">some text</a>@@

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:
>
> <ul class="org-ul">
> <li>@&lt;a href="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
>
> 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/)

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Bug: html quoting tags are transformed after exporting [8.0.2 (8.0.2-10-g3e1d83-elpa @ d:/SDTs/Emacs/lisp/org/)]
  2013-05-18  2:12 ` Eric Abrahamsen
@ 2013-05-18  2:22   ` Eric Abrahamsen
  2013-05-18 17:56     ` Nicolas Goaziou
  0 siblings, 1 reply; 5+ messages in thread
From: Eric Abrahamsen @ 2013-05-18  2:22 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 924 bytes --]

Eric Abrahamsen <eric@ericabrahamsen.net> writes:

> Kelvin Hu <ini.kelvin@gmail.com> 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 
>> "&lt;" and "&gt;". Now assume we have following contents:
>>
>> - @<a href="somewhere">some text@</a>
>
> The syntax for this has changed, now any backend-specific blocks can be
> exported with @@backend:foo@@. So yours should be:
>
> @@html:<a href="somewhere">some text</a>@@
>
> 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


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-org.texi-Correct-syntax-for-exporting-HTML-fragments.patch --]
[-- Type: text/x-patch, Size: 1286 bytes --]

From 14d5a493375197bcdcbd0b292e1d9990f12cb83a Mon Sep 17 00:00:00 2001
From: Eric Abrahamsen <eric@ericabrahamsen.net>
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{&lt;} and
-@samp{&gt;} in HTML export.  If you want to include simple HTML tags
-which should be interpreted as such, mark them with @samp{@@} as in
-@samp{@@<b>bold text@@</b>}.  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{&gt;} 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:<b>bold text</b>@@@@}.  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


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: Bug: html quoting tags are transformed after exporting [8.0.2 (8.0.2-10-g3e1d83-elpa @ d:/SDTs/Emacs/lisp/org/)]
  2013-05-18  2:22   ` Eric Abrahamsen
@ 2013-05-18 17:56     ` Nicolas Goaziou
  0 siblings, 0 replies; 5+ messages in thread
From: Nicolas Goaziou @ 2013-05-18 17:56 UTC (permalink / raw)
  To: Eric Abrahamsen; +Cc: emacs-orgmode

Hello,

Eric Abrahamsen <eric@ericabrahamsen.net> writes:

> Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>
>> Kelvin Hu <ini.kelvin@gmail.com> 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 
>>> "&lt;" and "&gt;". Now assume we have following contents:
>>>
>>> - @<a href="somewhere">some text@</a>
>>
>> The syntax for this has changed, now any backend-specific blocks can be
>> exported with @@backend:foo@@. So yours should be:
>>
>> @@html:<a href="somewhere">some text</a>@@
>>
>> 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Bug: html quoting tags are transformed after exporting [8.0.2 (8.0.2-10-g3e1d83-elpa @ d:/SDTs/Emacs/lisp/org/)]
  2013-05-17 14:49 Bug: html quoting tags are transformed after exporting [8.0.2 (8.0.2-10-g3e1d83-elpa @ d:/SDTs/Emacs/lisp/org/)] Kelvin Hu
  2013-05-18  2:12 ` Eric Abrahamsen
@ 2013-05-20  7:04 ` Kelvin Hu
  1 sibling, 0 replies; 5+ messages in thread
From: Kelvin Hu @ 2013-05-20  7:04 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 634 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 837 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-05-20  7:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-17 14:49 Bug: html quoting tags are transformed after exporting [8.0.2 (8.0.2-10-g3e1d83-elpa @ d:/SDTs/Emacs/lisp/org/)] Kelvin Hu
2013-05-18  2:12 ` Eric Abrahamsen
2013-05-18  2:22   ` Eric Abrahamsen
2013-05-18 17:56     ` Nicolas Goaziou
2013-05-20  7:04 ` Kelvin Hu

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).