mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Fix bug #10579
The \lyxdeleted macro cannot cope with empty lines.
(cherry picked from commit 5940dc53aa
)
This commit is contained in:
parent
0312d30f9c
commit
6836c75803
@ -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";
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user