The \lyxdeleted macro cannot cope with empty lines.
This commit is contained in:
Enrico Forestieri 2017-03-03 13:00:32 +01:00
parent aa6619237d
commit 5940dc53aa

View File

@ -136,7 +136,7 @@ ColorCode InsetSeparator::ColorName() const
}
void InsetSeparator::latex(otexstream & os, OutputParams const &) const
void InsetSeparator::latex(otexstream & os, OutputParams const & runparams) const
{
// Do nothing if a paragraph break was just output
if (!os.afterParbreak()) {
@ -146,7 +146,10 @@ void InsetSeparator::latex(otexstream & os, OutputParams const &) const
break;
case InsetSeparatorParams::PARBREAK:
case InsetSeparatorParams::LATEXPAR:
os << breakln << "\n";
if (runparams.inDeletedInset)
os << breakln << "}\n\n{";
else
os << breakln << "\n";
break;
default:
os << breakln << "%\n";