Sorry for taking a very long time to respond.

Roland Kaufmann <roland.kaufm...@gmail.com> writes:
> (let ((x 42)) <span style="comment">; meaning of l.u.e.
> <span id="ref-2"></span>  (print x))</span>
>                  ^^^^^^^
> 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 would be a bug in htmlize.  While Emacs supports arbitrarily
overlapping properties/overlays/extents, HTML doesn't, and htmlize is
normally careful to describe each unchanged run of text on its own.

I am not familiar with org-mode, so I will need a description of exactly
how to reproduce this bug.  Specifically I don't know how to put a
reference on the next line.

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 this.

Hrvoje

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to