瀏覽代碼

LaTeX export: Fix TODO keyword export

Carsten Dominik 15 年之前
父節點
當前提交
be232c4c21
共有 2 個文件被更改,包括 7 次插入1 次删除
  1. 5 0
      lisp/ChangeLog
  2. 2 1
      lisp/org-latex.el

+ 5 - 0
lisp/ChangeLog

@@ -1,3 +1,8 @@
+2010-05-13  Carsten Dominik  <carsten.dominik@gmail.com>
+
+	* org-latex.el (org-export-latex-keywords-maybe): Protect the
+	TODO markup.
+
 2010-05-13  Mikael Fornius  <mfo@abc.se>
 
 	* org-habit.el (org-habit-build-graph): Help-echo date when

+ 2 - 1
lisp/org-latex.el

@@ -1289,7 +1289,8 @@ links, keywords, lists, tables, fixed-width"
 			(cdr todo-markup) (car todo-markup)))
 		   (t (cdr (or (assoc (match-string 1) todo-markup)
 			       (car todo-markup))))))
-	(replace-match (format fmt (match-string 1)) t t)))
+	(replace-match (org-export-latex-protect-string
+			(format fmt (match-string 1))) t t)))
     ;; convert priority string
     (when (re-search-forward "\\[\\\\#.\\]" nil t)
       (if (plist-get remove-list :priority)