From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Moe Subject: [PATCH] Re: Export as HTML does not preserve nonstandard entities as TODO signs Date: Sun, 16 Oct 2011 16:36:02 +0200 Message-ID: <4E9AEBD2.4030208@christianmoe.com> References: <87wrc7tw16.fsf@yahoo.de> <4E9A7C0C.4060007@christianmoe.com> <2326842.D5jf4xeaZi@fluss> Reply-To: mail@christianmoe.com Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:43476) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFRlt-0000zB-Fe for emacs-orgmode@gnu.org; Sun, 16 Oct 2011 10:33:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RFRls-0005Q4-L1 for emacs-orgmode@gnu.org; Sun, 16 Oct 2011 10:33:01 -0400 Received: from mars.hitrost.net ([91.185.211.18]:27235) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFRls-0005Py-Fo for emacs-orgmode@gnu.org; Sun, 16 Oct 2011 10:33:00 -0400 In-Reply-To: <2326842.D5jf4xeaZi@fluss> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Arne Babenhauserheide Cc: emacs-orgmode@gnu.org 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) "" (substring line (match-end 2))))) ;; Does this contain a reference to a footnote?