backport fix for bug #8215

Font.cpp: CJK parts must not have a closing brace because they are within an environment
This commit is contained in:
Uwe Stöhr 2012-06-30 03:48:34 +02:00
parent 2eb4a46d0b
commit 2af09e2e0e
2 changed files with 6 additions and 2 deletions

View File

@ -539,8 +539,9 @@ int Font::latexWriteEndChanges(otexstream & os, BufferParams const & bparams,
open_encoding_ = false;
}
if (closeLanguage &&
language() != base.language() && language() != next.language()) {
if (closeLanguage
&& language() != base.language() && language() != next.language()
&& language()->encoding()->package() != Encoding::CJK) {
os << '}';
++count;
}

View File

@ -63,6 +63,9 @@ What's new
- Do not ignore polyglossia commands in partial source preview (bug 8209).
- Export correct language change commands if document coontains different
CJK languages (bug 8215).
* USER INTERFACE