mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 10:58:52 +00:00
do not output empty language switch commands (bug #8216, the actual fix)
This commit is contained in:
parent
065f247ccb
commit
e4b5af90b9
@ -583,7 +583,8 @@ void TeXOnePar(Buffer const & buf,
|
||||
os << "\\L{";
|
||||
}
|
||||
// With CJK, the CJK tag has to be closed first (see below)
|
||||
if (runparams.encoding->package() != Encoding::CJK) {
|
||||
if (runparams.encoding->package() != Encoding::CJK
|
||||
&& !par_lang.empty()) {
|
||||
os << from_ascii(subst(
|
||||
lang_begin_command,
|
||||
"$$lang",
|
||||
@ -644,7 +645,8 @@ void TeXOnePar(Buffer const & buf,
|
||||
os << "%\n";
|
||||
}
|
||||
// With CJK, the CJK tag had to be closed first (see above)
|
||||
if (runparams.encoding->package() == Encoding::CJK) {
|
||||
if (runparams.encoding->package() == Encoding::CJK
|
||||
&& !par_lang.empty()) {
|
||||
os << from_ascii(subst(
|
||||
lang_begin_command,
|
||||
"$$lang",
|
||||
|
Loading…
Reference in New Issue
Block a user