From ce8227e2951e5b7208b434645989f26107658036 Mon Sep 17 00:00:00 2001 From: Christian Moe Date: Sun, 16 Oct 2011 16:36:02 +0200 Subject: [PATCH] Correct html export of todo keywords * org-html.el (org-export-as-html): Apply `org-export-html-get-todo-kwd-class-name' to the class attribute of the todo-keyword span tag, not to its text content. The problem was that special characters in todo keywords were being replaced by underscore. This was meant to happen to the class attributes set around them. TINYCHANGE This only swaps two arguments to a concat. --- lisp/org-html.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lisp/org-html.el b/lisp/org-html.el index 9527fcf49..3724cfc1e 100644 --- a/lisp/org-html.el +++ b/lisp/org-html.el @@ -1628,9 +1628,9 @@ PUB-DIR is set, use this as the publishing directory." (if (member (match-string 2 line) org-done-keywords) "done" "todo") - " " (match-string 2 line) - "\"> " (org-export-html-get-todo-kwd-class-name - (match-string 2 line)) + " " (org-export-html-get-todo-kwd-class-name + (match-string 2 line)) + "\"> " (match-string 2 line) "" (substring line (match-end 2))))) ;; Does this contain a reference to a footnote? -- 2.11.4.GIT