mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-26 22:17:41 +00:00
Fix unbalanced bracket problem with CJK
The bug was introduced with commit [47f7d447/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
6a30211fef
commit
969f49c2c5
@ -286,7 +286,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;
|
||||
}
|
||||
@ -321,7 +321,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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user