emacs-orgmode
[Top][All Lists]
Advanced

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

[Orgmode] Re: [ANN] Changes to lists


From: Achim Gratz
Subject: [Orgmode] Re: [ANN] Changes to lists
Date: Wed, 09 Feb 2011 19:33:48 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

Nicolas Goaziou <address@hidden> writes:
> I've pushed a change in that direction. Unchecked boxes do not rely
> anymore on visibility:hidden style property.

Looks OK, but the space should probably be replaced by &nbsp; to avoid
possible tearing of the checkbox.  The regex for matching does not
catch "[-]", which explains why this type of checkbox is not boldened.
I think something like

              (if (string-match "^[ \t]*\\[\\([X -]\\)\\]" line)
                  (setq line
                        (replace-match
                         (if (equal (match-string 1 line) " ")
                             "<b>[&nbsp]</b>"
                           (concat "<b>[" (match-string 1 line) "]</b>")
                         t t line))))

should work, but I don't have enough experience with the string
replacement functions to be sure that it always does.

Meanwhile I've encountered the same questionable construct in the HTML
export of "\\___" (whitespace placeholder).


Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Samples for the Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#BlofeldSamplesExtra




reply via email to

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