mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
parent
ab16bb7eb9
commit
1116335977
@ -849,9 +849,11 @@ void TeXOnePar(Buffer const & buf,
|
||||
// Also, if an RTL language is set via environment in polyglossia,
|
||||
// only a nested \\text<lang> command will reset the direction for LTR
|
||||
// languages (see # 10111).
|
||||
bool const pg_rtl_env =
|
||||
use_polyglossia && outer_language->rightToLeft() && !par_language->rightToLeft();
|
||||
bool const localswitch = text.inset().forceLocalFontSwitch()
|
||||
|| (using_begin_end && text.inset().forcePlainLayout())
|
||||
|| (use_polyglossia && outer_language->rightToLeft() && !par_language->rightToLeft());
|
||||
|| pg_rtl_env;
|
||||
if (localswitch) {
|
||||
lang_begin_command = use_polyglossia ?
|
||||
"\\text$$lang$$opts{" : lyxrc.language_command_local;
|
||||
@ -1192,7 +1194,8 @@ void TeXOnePar(Buffer const & buf,
|
||||
&& style != nextpar->layout())))
|
||||
|| (atSameLastLangSwitchDepth(state)
|
||||
&& state->lang_switch_depth_.size()
|
||||
&& cur_lang != par_lang))
|
||||
&& cur_lang != par_lang)
|
||||
|| pg_rtl_env)
|
||||
{
|
||||
if (using_begin_end && !localswitch)
|
||||
os << breakln;
|
||||
|
Loading…
Reference in New Issue
Block a user