commit 889dac7def8036a86cc6ecbac151c34d6cc47b07
Author: Jürgen Spitzmüller <[email protected]>
Date: Wed Jun 28 14:46:46 2023 +0200
Prevent par break caused by \egroup (#12821)
---
src/insets/InsetListings.cpp | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/insets/InsetListings.cpp b/src/insets/InsetListings.cpp
index 5afc432..f2b26f0 100644
--- a/src/insets/InsetListings.cpp
+++ b/src/insets/InsetListings.cpp
@@ -409,6 +409,10 @@ void InsetListings::latex(otexstream & os, OutputParams
const & runparams) const
// Switch back
switchEncoding(os.os(), buffer().params(),
runparams, *save_enc, true, true);
+ if (!isInline)
+ // Go out of vertical mode. Otherwise \egroup
+ // causes a paragraph break (#12821)
+ os << "\\leavevmode";
os << "\\egroup" << breakln;
runparams.encoding = save_enc;
}
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs