latex error occurs inside a table, the exact faulty table row is spotted.
However, if all cells of a table row are output on the same line, lyx is
not able to tell what cell caused the error and highlights the last cell
of the row. This patch allows to output each cell of a table on its own
line, such that the exact point where the error occurred can be highlighted.
Note that this is only done when exporting for preview, and in normal (nice)
exports everything goes as usual.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37643
a592a061-630c-0410-9148-
cb99ea01b6c8
head.latex(os, newrp);
os << '&';
tail.latex(os, newrp);
head.latex(os, newrp);
os << '&';
tail.latex(os, newrp);
- } else if (!isPartOfMultiRow(row, c))
+ } else if (!isPartOfMultiRow(row, c)) {
+ if (!runparams.nice)
+ os.texrow().start(par.id(), 0);
runparams.encoding = newrp.encoding;
if (rtl)
runparams.encoding = newrp.encoding;
if (rtl)
TeXCellPostamble(os, cell, ismulticol, ismultirow);
if (cell != getLastCellInRow(row)) { // not last cell in row
TeXCellPostamble(os, cell, ismulticol, ismultirow);
if (cell != getLastCellInRow(row)) { // not last cell in row
+ if (runparams.nice)
+ os << " & ";
+ else
+ os << " &\n";
}
}
if (row_info[row].caption && !endfirsthead.empty && !haveLTFirstHead())
}
}
if (row_info[row].caption && !endfirsthead.empty && !haveLTFirstHead())