diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2020-06-01 15:15:15 +0200 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2020-06-01 15:15:15 +0200 |
commit | b908367b0347103047091875e403b477f9f507cc (patch) | |
tree | 3808f3c0a2cf350bfef6f58ff92961723f9b3664 | |
parent | 65fdf2be16c82df78fe533a022e1e233ae66d7a8 (diff) | |
download | org-mode-b908367b03.tar.gz |
ox-latex: Fix coderef links with special characters
* lisp/ox-latex.el (org-latex-link): Properly resolve coderefs with
special characters.
Reported-by: Vincent Picaud <picaud.vincent@gmail.com>
<http://lists.gnu.org/r/emacs-orgmode/2020-06/msg00004.html>
-rw-r--r-- | lisp/ox-latex.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el index 2d6acb1..9794868 100644 --- a/lisp/ox-latex.el +++ b/lisp/ox-latex.el @@ -2582,7 +2582,9 @@ INFO is a plist holding contextual information. See ;; equivalent line number. ((string= type "coderef") (format (org-export-get-coderef-format path desc) - (org-export-resolve-coderef path info))) + ;; Resolve with RAW-PATH since PATH could be tainted + ;; with `org-latex--protect-text' call above. + (org-export-resolve-coderef raw-path info))) ;; External link with a description part. ((and path desc) (format "\\href{%s}{%s}" path desc)) ;; External link without a description part. |