commit 49c00213063aab470d23faf6a6fd31f191f7f318
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.
(cherry picked from commit f6922b8c88d4d2e5bcf39264b8bac056470f49b8)
---
src/insets/InsetFloat.cpp | 4 ++++
status.23x | 2 ++
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/insets/InsetFloat.cpp b/src/insets/InsetFloat.cpp
index 021b7f3..50fd544 100644
--- a/src/insets/InsetFloat.cpp
+++ b/src/insets/InsetFloat.cpp
@@ -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');
}
diff --git a/status.23x b/status.23x
index a581df3..ad43472 100644
--- a/status.23x
+++ b/status.23x
@@ -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