Do not output tracked deleted paragraph break in listings (#10418)

This commit is contained in:
Juergen Spitzmueller 2021-01-20 07:38:33 +01:00
parent 566b4de5cd
commit 1d613827c6

View File

@ -312,9 +312,11 @@ void InsetListings::latex(otexstream & os, OutputParams const & runparams) const
}
}
++par;
// for the inline case, if there are multiple paragraphs
// Add new line for displayed listing between paragraphs.
// Exception: merged paragraphs in change tracking mode.
// Also, ´for the inline case, if there are multiple paragraphs
// they are simply joined. Otherwise, expect latex errors.
if (par != end && !isInline && !captionline)
if (par != end && !isInline && !captionline && !par->parEndChange().deleted())
code += "\n";
}
if (isInline) {