The \lyxdeleted macro cannot cope with empty lines.

(cherry picked from commit 5940dc53aa)
This commit is contained in:
Enrico Forestieri 2017-03-03 13:00:32 +01:00 committed by Richard Heck
parent 0312d30f9c
commit 6836c75803
2 changed files with 10 additions and 2 deletions

View File

@ -135,7 +135,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()) {
@ -145,7 +145,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";

View File

@ -144,6 +144,11 @@ What's new
- Use \providecommand for logical markup macros. This fixes a LaTeX error
with strong and fontenc.
- Fix problem with deleted paragraph breaks when changes are shown in
output (bug 10579).
- Allow for empty .lyx files to be opened (bug 9198).
* LYX2LYX