]> git.lyx.org Git - features.git/commitdiff
Improve LaTeX output of arrays in math. Always output a '\n' except in the case that...
authorVincent van Ravesteijn <vfr@lyx.org>
Sat, 1 Aug 2009 22:03:12 +0000 (22:03 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Sat, 1 Aug 2009 22:03:12 +0000 (22:03 +0000)
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

src/mathed/InsetMathGrid.cpp

index 2883309cf8b280c078e7091761057c499c7727df..fb9eaa3b4fc3b4e3c487301b69d795bcb948791e 100644 (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() ?