]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetSeparator.cpp
Properly fix handling of title layouts within insets (#11787)
[lyx.git] / src / insets / InsetSeparator.cpp
index 9beda1d0cf80befe67db10ea2a4650e10d22a7f1..42ff09e70ae0463ee74c5f1fd0d2977152bb95e3 100644 (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";
@@ -171,9 +174,9 @@ int InsetSeparator::docbook(odocstream & os, OutputParams const &) const
 }
 
 
-docstring InsetSeparator::xhtml(XHTMLStream & xs, OutputParams const &) const
+docstring InsetSeparator::xhtml(XMLStream & xs, OutputParams const &) const
 {
-       xs << html::CR() << html::CompTag("br") << html::CR();
+       xs << xml::CR() << xml::CompTag("br") << xml::CR();
        return docstring();
 }