mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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:
parent
7e624928ef
commit
13bb684eb0
@ -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() ?
|
||||
|
Loading…
Reference in New Issue
Block a user