From f6922b8c88d4d2e5bcf39264b8bac056470f49b8 Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Sat, 16 Jun 2018 20:55:38 +0200 Subject: [PATCH] Fix bug #11174 Apparently, a new paragraph is started after a float even if no blank line is actually present. So, account for this fact. --- src/insets/InsetFloat.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/insets/InsetFloat.cpp b/src/insets/InsetFloat.cpp index 9d92681dd2..c160daa4ab 100644 --- a/src/insets/InsetFloat.cpp +++ b/src/insets/InsetFloat.cpp @@ -447,6 +447,10 @@ void InsetFloat::latex(otexstream & os, OutputParams const & runparams_in) const // Force \end{} to appear in a new line. os << breakln << "\\end{" << from_ascii(tmptype) << "}\n"; + + // A new paragraph is always started after a float. Hence, simulate a + // blank line so that os.afterParbreak() returns true (see bug 11174). + os.lastChar('\n'); } -- 2.39.5