* Spaces in HTML export
@ 2013-09-17 17:37 Simon W. Jones
2013-09-18 3:01 ` Nick Dokos
0 siblings, 1 reply; 2+ messages in thread
From: Simon W. Jones @ 2013-09-17 17:37 UTC (permalink / raw)
To: emacs-orgmode@gnu.org
Hello,
A few days ago I raised a problem with HTML export I was having and was advised to upgrade to Orgmode 8.1. I have now done so but the problem persists. The problem significantly effects my workflow and I would be very grateful for a solution.
If I add a link in my document to an external website that has spaces in the URL, for example www.example.com/useful%20document.pdf, then export as HTML, the URL appears in the HTML output as www.example.com/useful%2520document.pdf. The link obviously then returns an error when one clicks on it.
Is there any way round this issue, can anyone else replicate the problem?
Many thanks,
Simon.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Spaces in HTML export
2013-09-17 17:37 Spaces in HTML export Simon W. Jones
@ 2013-09-18 3:01 ` Nick Dokos
0 siblings, 0 replies; 2+ messages in thread
From: Nick Dokos @ 2013-09-18 3:01 UTC (permalink / raw)
To: emacs-orgmode
"Simon W. Jones" <psilascom@gmail.com> writes:
> Hello,
>
> A few days ago I raised a problem with HTML export I was having and
> was advised to upgrade to Orgmode 8.1. I have now done so but the
> problem persists. The problem significantly effects my workflow and I
> would be very grateful for a solution.
>
> If I add a link in my document to an external website that has spaces
> in the URL, for example www.example.com/useful%20document.pdf, then
> export as HTML, the URL appears in the HTML output as
> www.example.com/useful%2520document.pdf. The link obviously then
> returns an error when one clicks on it.
>
> Is there any way round this issue, can anyone else replicate the problem?
>
How do you add the link to your org document? If you cut-and-paste into
the document, there should be no double encoding. If OTOH you use C-C
C-l, that *always* url-encodes, so you end up encoding the % sign and
%20 becomes %2520 since there is no way for org to know whether
something is urlencoded already. There was a discussion about this not
too long ago that came to this conclusion IIRC[fn:1].
You can get around the problem by constructing such links manually -
paste the url-encoded URL as it comes from your browser directly into
your org file buffer:
http://hl.udogs.net/files/Gaming/%20Myth%20Series/Myth%20II%20-%20Soulblighter/
and then put the link decorations around it by hand - after all, org is
just plain text:
[[http://hl.udogs.net/files/Gaming/%20Myth%20Series/Myth%20II%20-%20Soulblighter/][my link]]
Exporting that to HTML works fine I believe.
Footnotes:
[fn:1] http://thread.gmane.org/gmane.emacs.orgmode/74983
but I haven't gone back to reread it all.
--
Nick
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-09-18 3:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-17 17:37 Spaces in HTML export Simon W. Jones
2013-09-18 3:01 ` Nick Dokos
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.