mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Prevent par break caused by \egroup (#12821)
This commit is contained in:
parent
8aea6af6a0
commit
889dac7def
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user