empty line of substack, tabular and xymatrix, but not calling delEmptyLastRow
for them.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34763
a592a061-630c-0410-9148-
cb99ea01b6c8
bool innerHull(docstring const & name)
{
return name == "array" || name == "cases" || name == "aligned"
bool innerHull(docstring const & name)
{
return name == "array" || name == "cases" || name == "aligned"
- || name == "alignedat" || name == "gathered" || name == "split";
+ || name == "alignedat" || name == "gathered" || name == "split"
+ || name == "tabular";
else if (t.cs() == "substack") {
cell->push_back(createInsetMath(t.cs(), buf));
parse2(cell->back(), FLAG_ITEM, mode, false);
else if (t.cs() == "substack") {
cell->push_back(createInsetMath(t.cs(), buf));
parse2(cell->back(), FLAG_ITEM, mode, false);
+ // Delete empty last row if present
+ InsetMathGrid & subgrid =
+ *(cell->back().nucleus()->asGridInset());
+ if (subgrid.nrows() > 1)
+ delEmptyLastRow(subgrid);
}
else if (t.cs() == "xymatrix") {
}
else if (t.cs() == "xymatrix") {
os << getToken().asInput();
cell->push_back(createInsetMath(t.cs() + os.str(), buf));
parse2(cell->back(), FLAG_ITEM, mode, false);
os << getToken().asInput();
cell->push_back(createInsetMath(t.cs() + os.str(), buf));
parse2(cell->back(), FLAG_ITEM, mode, false);
+ // Delete empty last row if present
+ InsetMathGrid & subgrid =
+ *(cell->back().nucleus()->asGridInset());
+ if (subgrid.nrows() > 1)
+ delEmptyLastRow(subgrid);
}
else if (t.cs() == "framebox" || t.cs() == "makebox") {
}
else if (t.cs() == "framebox" || t.cs() == "makebox") {