Apparently, a new paragraph is started after a float even if
no blank line is actually present. So, account for this fact.
This commit is contained in:
Enrico Forestieri 2018-06-16 20:55:38 +02:00
parent 1bf4d7b0fc
commit f6922b8c88

View File

@ -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');
}