Apparently, a new paragraph is started after a float even if
no blank line is actually present. So, account for this fact.

(cherry picked from commit f6922b8c88)
This commit is contained in:
Enrico Forestieri 2018-06-16 20:55:38 +02:00
parent 567e94347a
commit 49c0021306
2 changed files with 6 additions and 0 deletions

View File

@ -402,6 +402,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');
}

View File

@ -159,6 +159,8 @@ What's new
- Fixed the last python scripts to support both python 2 and 3 (bug 11101). All
scripts should now be able to run in a python 3 only environment.
- Correctly strike-out deleted math immediately following a float (bug 11174).
* LYX2LYX