commit f6922b8c88d4d2e5bcf39264b8bac056470f49b8
Author: Enrico Forestieri <[email protected]>
Date:   Sat Jun 16 20:55:38 2018 +0200

    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 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/insets/InsetFloat.cpp b/src/insets/InsetFloat.cpp
index 9d92681..c160daa 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{<floatname>} 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');
 }
 
 

Reply via email to