and the patch.
Index:
C:/Users/Vincent/OpenSource/LyX/svn-filename/src/mathed/InsetMathGrid.cpp
===================================================================
---
C:/Users/Vincent/OpenSource/LyX/svn-filename/src/mathed/InsetMathGrid.cpp
(revision 30748)
+++
C:/Users/Vincent/OpenSource/LyX/svn-filename/src/mathed/InsetMathGrid.cpp
(working copy)
@@ -651,7 +651,7 @@
}
// only add \\ if necessary
- if (eol.empty() && row + 1 == nrows() && (nrows() == 1 ||
!emptyline))
+ if (eol.empty() && row + 1 == nrows())
return docstring();
return (fragile ? "\\protect\\\\" : "\\\\") + eol;
@@ -1007,11 +1007,7 @@
os << eocString(col, lastcol);
}
eol = eolString(row, emptyline, 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)
- os << "\n";
+ os << eol << "\n";
}
// @TODO use end_row instead of nrows() ?
docstring const s = verboseHLine(rowinfo_[nrows()].lines_);