浏览代码

Protect index string

* lisp/org-latex.el (org-export-latex-preprocess): Protect index string
Carsten Dominik 14 年之前
父节点
当前提交
8d509bb494
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      lisp/org-latex.el

+ 2 - 1
lisp/org-latex.el

@@ -2330,7 +2330,8 @@ The conversion is made depending of STRING-BEFORE and STRING-AFTER."
 	    nil t)
       (setq entry 
 	    (save-match-data
-	      (org-export-latex-fontify-headline (match-string 1))))
+	      (org-export-latex-protect-string
+	       (org-export-latex-fontify-headline (match-string 1)))))
       (replace-match (format "\\index{%s}" entry) t t)))
 
   ;; Convert center