Nicolas Goaziou преди 4 години
родител
ревизия
d391364ac9
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3 1
      lisp/ox-latex.el

+ 3 - 1
lisp/ox-latex.el

@@ -2588,7 +2588,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.