Fix unbalanced bracket problem with CJK

The bug was introduced with commit [2af09e2e/lyxgit], where the unnecessary trailing bracket in CJK environments was suppresed, but not the preceding bracket (which is only output if CJK is a secondary language).
This commit is contained in:
Juergen Spitzmueller 2013-10-11 12:19:41 +02:00
parent c8efd6f45b
commit b9976f5929
2 changed files with 5 additions and 2 deletions

View File

@ -284,7 +284,7 @@ int Font::latexWriteStartChanges(odocstream & os, BufferParams const & bparams,
tmp += "{";
os << from_ascii(tmp);
count += tmp.length();
} else {
} else if (language()->encoding()->package() != Encoding::CJK) {
os << '{';
count += 1;
}
@ -319,7 +319,7 @@ int Font::latexWriteStartChanges(odocstream & os, BufferParams const & bparams,
"$$lang", language()->babel());
os << from_ascii(tmp);
count += tmp.length();
} else {
} else if (language()->encoding()->package() != Encoding::CJK) {
os << '{';
count += 1;
}

View File

@ -59,6 +59,9 @@ What's new
- Fix problem with unbalanced braces in XeTeX output (bug 8765).
- Fix problems with unbalanced braces with a secondary CJK language
(bug 8215).
- Fix state of certain language packages (polyglossia, japanese) in
child documents (bug 8770).