emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Christian Moe <mail@christianmoe.com>
To: Arne Babenhauserheide <arne_bab@web.de>
Cc: emacs-orgmode@gnu.org
Subject: [PATCH] Re: Export as HTML does not preserve nonstandard entities as TODO signs
Date: Sun, 16 Oct 2011 16:36:02 +0200	[thread overview]
Message-ID: <4E9AEBD2.4030208@christianmoe.com> (raw)
In-Reply-To: <2326842.D5jf4xeaZi@fluss>

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?

  parent reply	other threads:[~2011-10-16 14:33 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-14 15:47 Export as HTML does not preserve nonstandard entities as TODO signs Arne Babenhauserheide
2011-10-16  6:39 ` Christian Moe
2011-10-16  8:05   ` Arne Babenhauserheide
2011-10-16 14:33     ` Christian Moe
2011-10-17  5:35       ` Arne Babenhauserheide
2011-10-16 14:36     ` Christian Moe [this message]
2011-12-11 17:57       ` [PATCH] " Bastien
2011-12-11 19:38         ` Christian Moe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E9AEBD2.4030208@christianmoe.com \
    --to=mail@christianmoe.com \
    --cc=arne_bab@web.de \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).