The \lyxdeleted macro cannot cope with \newpage & co.
This commit is contained in:
Enrico Forestieri 2017-04-02 23:56:25 +02:00
parent 621ccc5e4e
commit e36c661c61

View File

@ -213,7 +213,11 @@ ColorCode InsetNewpage::ColorName() const
void InsetNewpage::latex(otexstream & os, OutputParams const & runparams) const
{
switch (params_.kind) {
if (runparams.inDeletedInset) {
os << "\\mbox{}\\\\\\makebox[\\columnwidth]{\\dotfill\\ "
<< insetLabel() << "\\ \\dotfill}";
} else {
switch (params_.kind) {
case InsetNewpageParams::NEWPAGE:
os << "\\newpage" << termcmd;
break;
@ -231,6 +235,7 @@ void InsetNewpage::latex(otexstream & os, OutputParams const & runparams) const
default:
os << "\\newpage" << termcmd;
break;
}
}
}