mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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.
This commit is contained in:
parent
1bf4d7b0fc
commit
f6922b8c88
@ -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');
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user