commit fe426c2db88298229c6bd7ce5a410e7268aa30f7
Author: Enrico Forestieri <[email protected]>
Date: Sat Sep 28 16:08:06 2019 +0200
Fix bug 11667
When automatic command termination was added to texstream it was
forgotten to reset its status after a math inset.
(cherry picked from commit 0573bf92e08715266d97ba8cec74107d084744c8)
---
src/mathed/InsetMathNest.cpp | 3 ++-
status.23x | 2 ++
2 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/src/mathed/InsetMathNest.cpp b/src/mathed/InsetMathNest.cpp
index 63fa74a..bc3c2ad 100644
--- a/src/mathed/InsetMathNest.cpp
+++ b/src/mathed/InsetMathNest.cpp
@@ -373,9 +373,10 @@ void InsetMathNest::latex(otexstream & os, OutputParams
const & runparams) const
Changer dummy = wi.changeRowEntry(TexRow::textEntry(runparams.lastid,
runparams.lastpos));
write(wi);
- // Reset parbreak status after a math inset.
+ // Reset parbreak and command termination status after a math inset.
os.lastChar(0);
os.canBreakLine(wi.canBreakLine());
+ os.terminateCommand(false);
}
diff --git a/status.23x b/status.23x
index 6637109..9c1906d 100644
--- a/status.23x
+++ b/status.23x
@@ -110,6 +110,8 @@ What's new
- Fix problem with included objects with Linkback service on Mac (bug 6961).
+- Fix termination of commands after math insets (bug 11667).
+
* USER INTERFACE