]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetFloat.cpp
Fix bug #7254 (LyX may insert a blank line when ending an environment)
[features.git] / src / insets / InsetFloat.cpp
index 2292d175c99b88a8046f6995fe3dfe6f438a5478..7e8bb7f7de45f22e89ab95189c2eada68711c7bd 100644 (file)
@@ -386,8 +386,8 @@ int InsetFloat::latex(odocstream & os, OutputParams const & runparams_in) const
        int const i = InsetText::latex(os, runparams);
 
        // The \n is used to force \end{<floatname>} to appear in a new line.
-       // In this case, we do not case if the current output line is empty.
-       os << "\n\\end{" << from_ascii(tmptype) << "}\n";
+       // Also in this case, we care that the current output line is not empty.
+       os << "%\n\\end{" << from_ascii(tmptype) << "}\n";
 
        return i + 4;
 }