mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Due to the increased accuracy of line counting and registering, when a
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
This commit is contained in:
parent
13126b8060
commit
46028a6914
@ -2492,8 +2492,11 @@ void Tabular::TeXRow(otexstream & os, row_type row,
|
||||
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);
|
||||
inset->latex(os, newrp);
|
||||
}
|
||||
|
||||
runparams.encoding = newrp.encoding;
|
||||
if (rtl)
|
||||
@ -2501,7 +2504,10 @@ void Tabular::TeXRow(otexstream & os, row_type row,
|
||||
|
||||
TeXCellPostamble(os, cell, ismulticol, ismultirow);
|
||||
if (cell != getLastCellInRow(row)) { // not last cell in row
|
||||
os << " & ";
|
||||
if (runparams.nice)
|
||||
os << " & ";
|
||||
else
|
||||
os << " &\n";
|
||||
}
|
||||
}
|
||||
if (row_info[row].caption && !endfirsthead.empty && !haveLTFirstHead())
|
||||
|
Loading…
Reference in New Issue
Block a user