[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Incorrect hexification in URLs in LaTeX Export

From: Andreas Leha
Subject: Re: [O] Incorrect hexification in URLs in LaTeX Export
Date: Fri, 28 Feb 2014 21:26:17 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

"R. Michael Weylandt <address@hidden>"
<address@hidden> writes:

> I've tried this with Org 7.9.3 and 8.2.5h to the same result:
> <---------------------->
> #+TITLE: Test
> * One
> Here is a [[http://google.com/search?q=orgmode][link]]
> <---------------------->
> Exporting to HTML doesn't transform the link but exporting to LaTeX results 
> in the (non-working) http://google.com/search?%3Dorgmode
> Is there a reason for this behavior and, if so, a way to work around it?
> RFC 3986 2.2 explicitly says URLs may include `=` and =url-encode-url= 
> doesn't change the link in question.
> I've played with org-url-hexify-p and read past ML discussions, but
> they seem primarily concerned with characters which should not appear
> in URIs.
> Thanks,
> Michael

Hi Michael,

I have recently been bitten by this as well.  Based on a block
post [fn:1], I now have this in my .emacs as a work-around:

--8<---------------cut here---------------start------------->8---
(defun al-link-filter (contents backend info)
  (let ((contents (replace-regexp-in-string "\\\\#\\+name:.*$" "" contents)));; 
old and unrelated
      (replace-regexp-in-string "%3D" "=" contents)))
(add-to-list 'org-export-filter-final-output-functions 'al-link-filter)
--8<---------------cut here---------------end--------------->8---

It seems to work for me.



[fn:1] http://irreal.org/blog/?p=2175

reply via email to

[Prev in Thread] Current Thread [Next in Thread]