Style and whitespace

This commit is contained in:
Scott Kostyshak 2023-06-29 05:31:41 -04:00
parent befe2da495
commit 551ede855a

View File

@ -405,14 +405,14 @@ void InsetListings::latex(otexstream & os, OutputParams const & runparams) const
os << code << breakln << "\\end{lstlisting}\n";
}
if (encoding_switched){
if (encoding_switched) {
// 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";
if (!isInline)
// Go out of vertical mode. Otherwise \egroup
// causes a paragraph break (#12821)
os << "\\leavevmode";
os << "\\egroup" << breakln;
runparams.encoding = save_enc;
}