Fix indentation

This commit is contained in:
Juergen Spitzmueller 2019-05-11 18:59:42 +02:00
parent 79feeb0c03
commit 62085642bc

View File

@ -305,10 +305,11 @@ static TeXEnvironmentData prepareEnvironment(Buffer const & buf,
// in multilingual environments, the CJK tags have to be nested properly
data.cjk_nested = false;
if (!bparams.useNonTeXFonts && (bparams.inputenc == "auto-legacy"
|| bparams.inputenc == "auto-legacy-plain")
&& data.par_language->encoding()->package() == Encoding::CJK
&& state->open_encoding_ != CJK && pit->isMultiLingual(bparams)) {
if (!bparams.useNonTeXFonts
&& (bparams.inputenc == "auto-legacy"
|| bparams.inputenc == "auto-legacy-plain")
&& data.par_language->encoding()->package() == Encoding::CJK
&& state->open_encoding_ != CJK && pit->isMultiLingual(bparams)) {
if (prev_par_language->encoding()->package() == Encoding::CJK) {
os << "\\begin{CJK}{"
<< from_ascii(data.par_language->encoding()->latexName())