commit 5940dc53aab9fec6cd02f8be337f0e6c9b2e5fb1
Author: Enrico Forestieri <for...@lyx.org>
Date:   Fri Mar 3 13:00:32 2017 +0100

    Fix bug #10579
    
    The \lyxdeleted macro cannot cope with empty lines.
---
 src/insets/InsetSeparator.cpp |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/insets/InsetSeparator.cpp b/src/insets/InsetSeparator.cpp
index 9beda1d..af7fb64 100644
--- a/src/insets/InsetSeparator.cpp
+++ b/src/insets/InsetSeparator.cpp
@@ -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";

Reply via email to