Sorry for taking so long to come back to this; I had some unrelated
problems with my system.
> Please let us know if there is a useful way to generalize the workaround
> presented earlier in the thread.
Attached is against the latest git tree for org-mode a patch which I
believe does the trick. (
Hi Roland,
Roland Kaufmann writes:
> And, as you point out, it is probably better to deal with the problem by
> removing the formatting on the newlines (probably right after
> font-lock-fontify-buffer in org-export-format-source-code-or-example) in
> the temporary buffer that is htmlize'd, reduc
Roland Kaufmann writes:
>> htmlize doesn't operate on the level of syntax-based fontification, it
>> examines the display-related properties attached to buffer text (not
>> necessarily by font-lock) and renders them into the corresponding HTML.
>
> Good point.
>
> And, as you point out, it is pro
htmlize doesn't operate on the level of syntax-based fontification, it
examines the display-related properties attached to buffer text (not
necessarily by font-lock) and renders them into the corresponding HTML.
Good point.
And, as you point out, it is probably better to deal with the problem b
[ Please include me in the replies, as I'm not subscribed to emacs-orgmode. ]
> > Your patch may work in this particular case, but the idea behind
> > htmlize is to describe the state of the buffer. If a property ends
> > after the newline, it is intended that the generated HTML reflect
>
> The
Sorry for taking a very long time to respond.
Roland Kaufmann writes:
> (let ((x 42)) ; meaning of l.u.e.
> (print x))
> ^^^
> The first closing tag is really the end of the comment which is
> spilled to the next line, but it erraneously closes the id span.
If so, that wou
Your patch may work in this particular case, but the idea behind
htmlize is to describe the state of the buffer. If a property ends
after the newline, it is intended that the generated HTML reflect
The philosophical question is then: Is the newline character part of the
syntax construct that i