mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
parent
afb442c76c
commit
dc174db6c1
@ -1629,6 +1629,22 @@ void latexParagraphs(Buffer const & buf,
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Do not output empty environments if the whole paragraph has
|
||||||
|
// been deleted with ct and changes are not output.
|
||||||
|
if (pit < runparams.par_end) {
|
||||||
|
ParagraphList::const_iterator nextpar = paragraphs.constIterator(pit + 1);
|
||||||
|
Paragraph const & cpar = paragraphs.at(pit);
|
||||||
|
if ((par->layout() != nextpar->layout()
|
||||||
|
|| par->params().depth() == nextpar->params().depth()
|
||||||
|
|| par->params().leftIndent() == nextpar->params().leftIndent())
|
||||||
|
&& !runparams.for_search && cpar.size() > 0
|
||||||
|
&& cpar.isDeleted(0, cpar.size()) && !bparams.output_changes) {
|
||||||
|
if (!bparams.output_changes && !cpar.parEndChange().deleted())
|
||||||
|
os << '\n' << '\n';
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
TeXEnvironmentData const data =
|
TeXEnvironmentData const data =
|
||||||
prepareEnvironment(buf, text, par, os, runparams);
|
prepareEnvironment(buf, text, par, os, runparams);
|
||||||
// pit can be changed in TeXEnvironment.
|
// pit can be changed in TeXEnvironment.
|
||||||
|
Loading…
Reference in New Issue
Block a user