mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
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:
parent
c8efd6f45b
commit
b9976f5929
@ -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;
|
||||
}
|
||||
|
@ -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).
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user