Improve LaTeX output of arrays in math. Always output a '\n' except in the case that the line is completely empty.

see also:
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg153349.html

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30822 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2009-08-01 22:03:12 +00:00
parent 7e624928ef
commit 13bb684eb0

View File

@ -1009,8 +1009,7 @@ void InsetMathGrid::write(WriteStream & os,
eol = eolString(row, os.fragile());
os << eol;
// append newline only if line wasn't completely empty
// and this was not the last line in the grid
if (!emptyline && row + 1 < end_row)
if (!(emptyline && eol.empty()))
os << "\n";
}
// @TODO use end_row instead of nrows() ?