* Bug: Incorrect result of exporting info link [9.0.1 (release_9.0.1-143-g469103 @ /home/xcy/src/org-mode/lisp/)]
@ 2016-12-14 9:49 徐春阳
2016-12-17 10:48 ` Nicolas Goaziou
0 siblings, 1 reply; 2+ messages in thread
From: 徐春阳 @ 2016-12-14 9:49 UTC (permalink / raw)
To: emacs-orgmode
Hi org-mode list.
At (info "(emacs) Echo Area"), 'M-x org-store-link' stores the link as:
[[info:emacs#Echo%20Area][info:emacs#Echo Area]]
however org doesn't export it correctly, for example, the result of html
export is:
<a href="http://www.gnu.org/software/emacs/manual/html_mono/emacs.html#Echo-Area"><a href="http://www.gnu.org/software/emacs/manual/html_mono/emacs.html#Echo">emacs#Echo</a> Area</a>
the correct result should be:
<a href="http://www.gnu.org/software/emacs/manual/html_mono/emacs.html#Echo-Area">emacs#Echo Area</a
and the result of ASCII export is:
[[info:emacs#Echo] Area]
[[info:emacs#Echo] Area] info:emacs#Echo%20Area
the correct result should be:
[info:emacs#Echo Area]
[info:emacs#Echo Area] info:emacs#Echo%20Area
I tried to debug this by inserting
(message "-> org-info-export: path: [%s] desc: [%s]" path desc)
at the beginning of org-info-export, then export, it shows
-> org-info-export: path: [emacs#Echo] desc: [nil]
-> org-info-export: path: [emacs#Echo Area] desc: [[info:emacs#Echo] Area] [2 times]
It looks like one info link is exported three times.
\f
BTW, I'm relative new to org-mode and the mailing list. I have some
questions: 1) does org-mode have a bug track system? Before reporting a
bug, I would like to make sure it's not already reported. 2) I notice
that subjects of mails in the mailing list are all prefixed with "[O]",
I guess it is for filtering. My question is: do I need to add "[O]" at
the beginning of my subject manually? or is it added automatically?
Thanks for your help.
徐春阳
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Bug: Incorrect result of exporting info link [9.0.1 (release_9.0.1-143-g469103 @ /home/xcy/src/org-mode/lisp/)]
2016-12-14 9:49 Bug: Incorrect result of exporting info link [9.0.1 (release_9.0.1-143-g469103 @ /home/xcy/src/org-mode/lisp/)] 徐春阳
@ 2016-12-17 10:48 ` Nicolas Goaziou
0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2016-12-17 10:48 UTC (permalink / raw)
To: 徐春阳; +Cc: emacs-orgmode
Hello,
徐春阳 <mail@xuchunyang.me> writes:
> At (info "(emacs) Echo Area"), 'M-x org-store-link' stores the link as:
>
> [[info:emacs#Echo%20Area][info:emacs#Echo Area]]
>
> however org doesn't export it correctly, for example, the result of html
> export is:
>
> <a href="http://www.gnu.org/software/emacs/manual/html_mono/emacs.html#Echo-Area"><a href="http://www.gnu.org/software/emacs/manual/html_mono/emacs.html#Echo">emacs#Echo</a> Area</a>
>
> the correct result should be:
>
> <a href="http://www.gnu.org/software/emacs/manual/html_mono/emacs.html#Echo-Area">emacs#Echo Area</a
>
> and the result of ASCII export is:
>
> [[info:emacs#Echo] Area]
> [[info:emacs#Echo] Area] info:emacs#Echo%20Area
>
> the correct result should be:
>
> [info:emacs#Echo Area]
> [info:emacs#Echo Area] info:emacs#Echo%20Area
>
> I tried to debug this by inserting
>
> (message "-> org-info-export: path: [%s] desc: [%s]" path desc)
>
> at the beginning of org-info-export, then export, it shows
>
> -> org-info-export: path: [emacs#Echo] desc: [nil]
> -> org-info-export: path: [emacs#Echo Area] desc: [[info:emacs#Echo] Area] [2 times]
>
> It looks like one info link is exported three times.
It's not really a bug in the exporter, but rather a poor parser design
decision. Basically "info:emacs#Echo" is a valid link in Org, even as
a description of another link.
I removed nested links in parser. Instead I added a tool in "ox.el",
namely `org-export-insert-image-links' to add them whenever a back-end
can make use of them.
I made that change in master. So, the issue should be fixed there.
Thank you.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-12-17 10:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-14 9:49 Bug: Incorrect result of exporting info link [9.0.1 (release_9.0.1-143-g469103 @ /home/xcy/src/org-mode/lisp/)] 徐春阳
2016-12-17 10:48 ` Nicolas Goaziou
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).