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).
tmp += "{";
os << from_ascii(tmp);
count += tmp.length();
- } else {
+ } else if (language()->encoding()->package() != Encoding::CJK) {
os << '{';
count += 1;
}
"$$lang", language()->babel());
os << from_ascii(tmp);
count += tmp.length();
- } else {
+ } else if (language()->encoding()->package() != Encoding::CJK) {
os << '{';
count += 1;
}
- 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).