Re: [O] [PATCH] Re: Export as HTML does not preserve nonstandard entities as TODO signs

2011-12-11 Thread Bastien
Hi Christian,

Christian Moe m...@christianmoe.com writes:

 Correct html export of todo keywords

  * org-html.el (org-export-as-html): Apply
org-export-html-get-todo-kwd-class-name to the the class attribute
of the todo-keyword span tag, not to its text content

Applied, thanks!

-- 
 Bastien



Re: [O] [PATCH] Re: Export as HTML does not preserve nonstandard entities as TODO signs

2011-12-11 Thread Christian Moe


On 12/11/11 6:57 PM, Bastien wrote:

Applied, thanks!



Thanks.

Yours,
Christian



[O] [PATCH] Re: Export as HTML does not preserve nonstandard entities as TODO signs

2011-10-16 Thread Christian Moe

Correct html export of todo keywords

 * org-html.el (org-export-as-html): Apply
   org-export-html-get-todo-kwd-class-name to the 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.


diff --git a/lisp/org-html.el b/lisp/org-html.el
index a2a9426..47adfd2 100644
--- a/lisp/org-html.el
+++ b/lisp/org-html.el
@@ -1608,9 +1608,9 @@ lang=\%s\ xml:lang=\%s\
(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)
/span (substring line (match-end 2)

  ;; Does this contain a reference to a footnote?