diff --git a/src/insets/InsetListings.cpp b/src/insets/InsetListings.cpp index f2b26f0d15..fa3834063f 100644 --- a/src/insets/InsetListings.cpp +++ b/src/insets/InsetListings.cpp @@ -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; }