From be232c4c212283ca6311cfe35c0bae7719146e55 Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Thu, 13 May 2010 08:47:26 +0200 Subject: [PATCH] LaTeX export: Fix TODO keyword export --- lisp/ChangeLog | 5 +++++ lisp/org-latex.el | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 45c9ec79e..04c9ecb0e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2010-05-13 Carsten Dominik + + * org-latex.el (org-export-latex-keywords-maybe): Protect the + TODO markup. + 2010-05-13 Mikael Fornius * org-habit.el (org-habit-build-graph): Help-echo date when diff --git a/lisp/org-latex.el b/lisp/org-latex.el index e3544bf7f..afa0be20c 100644 --- a/lisp/org-latex.el +++ b/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)