On Mon, Nov 15, 2010 at 11:20:34AM -0500, Richard Heck wrote:
> On 11/13/2010 07:38 PM, Pavel Sanda wrote:
> >perhaps Richard? - 6733 (LyX allows split environment...)
> >
> The only thing that can really be done here now is to try to get rid
> of that extra line after \end{split}. I don't know why that is
> there, as I don't know the math code at all. But I think it must be
> due to changes in InsetMathGrid::write(). I posted a few things in
> the bug report.

We already have pendingSpace() and pendingBrace() methods, so we could
add a pendingEol() method, such that when a newline is desidered, we
actually don't write it but do pendingEol(true).

Then, in "WriteStream & operator<<(..." we check for pendingEol and
actually write it, unless what has to be written already begins with
a newline. Problem solved, me thinks.

-- 
Enrico

Reply via email to