summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <n.goaziou@gmail.com>2011-02-06 17:33:49 +0100
committerNicolas Goaziou <n.goaziou@gmail.com>2011-02-18 13:43:48 +0100
commit4fd61d8021b36f0316eca0693101bdadcfc4b94c (patch)
treedae6edf612567019c5fac91293396f7d865ef4af
parentfeb1a17083e40fcf624a5da9ea9da7e921ca7c29 (diff)
downloadorg-mode-4fd61d8021b36f0316eca0693101bdadcfc4b94c.tar.gz
org-html: unchecked boxes should not appear checked without CSS
-rw-r--r--lisp/org-html.el7
1 files changed, 3 insertions, 4 deletions
diff --git a/lisp/org-html.el b/lisp/org-html.el
index 59bfdc3..9e43a8f 100644
--- a/lisp/org-html.el
+++ b/lisp/org-html.el
@@ -2467,10 +2467,9 @@ the alist of previous items."
(setq body
(concat
(cond
- ((string-match "X" checkbox) "<b>[X]</b> ")
- ((string-match " " checkbox)
- "<b>[<span style=\"visibility:hidden;\">X</span>]</b> ")
- (t "[-] "))
+ ((string-match "X" checkbox) "<code>[X]</code> ")
+ ((string-match " " checkbox) "<code>[ ]</code> ")
+ (t "<code>[-]</code> "))
body)))
;; Return modified line
body))