[Orgmode] Re: [PATCH] Markup on same line as text

2011-02-16 Thread Roland Kaufmann
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

[Orgmode] Re: [PATCH] Markup on same line as text

2011-02-17 Thread Hrvoje Niksic
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

[Orgmode] Re: [PATCH] Markup on same line as text

2011-02-17 Thread Hrvoje Niksic
[ 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

[Orgmode] Re: [PATCH] Markup on same line as text

2011-02-19 Thread Roland Kaufmann
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

[Orgmode] Re: [PATCH] Markup on same line as text

2011-02-19 Thread Hrvoje Niksic
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

[Orgmode] Re: [PATCH] Markup on same line as text

2011-02-28 Thread Roland Kaufmann
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. (

Re: [Orgmode] Re: [PATCH] Markup on same line as text

2011-02-26 Thread Bastien
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