org-html: unchecked boxes should not appear checked without CSS

This commit is contained in:
Nicolas Goaziou 2011-02-06 17:33:49 +01:00
parent feb1a17083
commit 4fd61d8021
1 changed files with 3 additions and 4 deletions

View File

@ -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))