At end of children, language needs to be reset

This amends 243b0ef90c
This commit is contained in:
Juergen Spitzmueller 2023-07-18 15:27:17 +02:00
parent 6603ae2242
commit c549a2b59c

View File

@ -1303,7 +1303,9 @@ void TeXOnePar(Buffer const & buf,
// Since \selectlanguage write the language to the aux file, // Since \selectlanguage write the language to the aux file,
// we need to reset the language at the end of footnote or // we need to reset the language at the end of footnote or
// float. // float.
|| runparams.inFloat != OutputParams::NONFLOAT || runparams.inFootnote)) || runparams.inFloat != OutputParams::NONFLOAT || runparams.inFootnote
// Same for maintext in children (see below)
|| maintext))
|| close_lang_switch) || close_lang_switch)
&& (par_lang != outer_lang || (using_begin_end && (par_lang != outer_lang || (using_begin_end
&& style.isEnvironment() && style.isEnvironment()