소스 검색

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