From b908367b0347103047091875e403b477f9f507cc Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Mon, 1 Jun 2020 15:15:15 +0200 Subject: [PATCH] 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 --- lisp/ox-latex.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el index 2d6acb13e..97948680f 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.