From 1385f0fddd0229770496b1e50b76782892032d18 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Tue, 23 Jul 2024 22:02:50 +0200 Subject: [PATCH] Fixup 216a6fb348: close when quitting text mode This fixes malformed documents on UserGuide export. Related to bug #13069. --- src/mathed/MathStream.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mathed/MathStream.cpp b/src/mathed/MathStream.cpp index 2951aeeefd..665b3fcbf4 100644 --- a/src/mathed/MathStream.cpp +++ b/src/mathed/MathStream.cpp @@ -547,6 +547,7 @@ SetMode::SetMode(MathMLStream & ms, bool text) SetMode::~SetMode() { + ms_.beforeTag(); ms_.text_level_ = old_text_level_; }