Prevent par break caused by \egroup (#12821)

This commit is contained in:
Jürgen Spitzmüller 2023-06-28 14:46:46 +02:00
parent 8aea6af6a0
commit 889dac7def

View File

@ -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;
}