emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Getting checkboxes in HTML output?


From: Nick Dokos
Subject: Re: [O] Getting checkboxes in HTML output?
Date: Mon, 02 Dec 2013 20:11:25 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Peter Davis <address@hidden> writes:

> I've now changed ox-html.el to include this:
>

As an FYI: you don't need to change ox-html.el. You can just load a file
containing the redefinition *after* you've loaded ox-html. Something
like this (untested):

(eval-after-load "ox-html"
      (defun org-html-checkbox (checkbox)
        ....))

That way, you have pristine sources *and* you get the redefined
function.

> (defun org-html-checkbox (checkbox)
>   "Format CHECKBOX into HTML."
>   (case checkbox (on "&#9746;")
>     (off "&#9744;")
>     (trans "&#9745;")
>     (t "")))
>
>
> This is sort of close to using
>  [ ] for unchecked
>  [/] for partially checked
>  [X] for checked
>
> To my aging eyes, the check in U#9745 looks almost like a forward
> slash. Certainly, though, this would be potentially confusing,
> especially if no [X] boxes were present, so that only [ ] or [/] were
> visible.
>
> -pd

-- 
Nick




reply via email to

[Prev in Thread] Current Thread [Next in Thread]