ox-latex.el (org-latex-link): Escape `%' characters

* ox-latex.el (org-latex-link): Escape `%' characters.
This commit is contained in:
Bastien Guerry 2014-03-18 16:41:24 +01:00
parent 3a1a72f2f5
commit 03bcfbe3d0
1 changed files with 2 additions and 1 deletions

View File

@ -1778,7 +1778,8 @@ DESC is the description part of the link, or the empty string.
INFO is a plist holding contextual information. See
`org-export-data'."
(let* ((type (org-element-property :type link))
(raw-path (org-element-property :path link))
(raw-path (replace-regexp-in-string
"%" "\\%" (org-element-property :path link) nil t))
;; Ensure DESC really exists, or set it to nil.
(desc (and (not (string= desc "")) desc))
(imagep (org-export-inline-image-p