瀏覽代碼

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

* ox-latex.el (org-latex-link): Escape `%' characters.
Bastien Guerry 11 年之前
父節點
當前提交
03bcfbe3d0
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      lisp/ox-latex.el

+ 2 - 1
lisp/ox-latex.el

@@ -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