commit 22e6659780390a19174d1bf896317a5baf9e40d7
Author: Juergen Spitzmueller <[email protected]>
Date:   Fri Apr 27 18:27:21 2018 +0200

    Don't add localswitch if no language changes
    
    (cherry picked from commit 7018d3641f693967bb8bade86488a495cd2e976b)
---
 src/output_latex.cpp |    6 ++++--
 status.23x           |    2 ++
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/output_latex.cpp b/src/output_latex.cpp
index db005cd..03b4b44 100644
--- a/src/output_latex.cpp
+++ b/src/output_latex.cpp
@@ -840,9 +840,11 @@ void TeXOnePar(Buffer const & buf,
                lang_end_command = "}";
                lang_command_termination.clear();
        }
+       
+       bool const localswitch_needed = localswitch && par_lang != outer_lang;
 
        // localswitches need to be closed and reopened at each par
-       if ((par_lang != prev_lang || localswitch)
+       if ((par_lang != prev_lang || localswitch_needed)
             // check if we already put language command in TeXEnvironment()
             && !(style.isEnvironment()
                  && (pit == 0 || (priorpar->layout() != par.layout()
@@ -1117,7 +1119,7 @@ void TeXOnePar(Buffer const & buf,
                &&((nextpar && par_lang != nextpar_lang)
                   || (runparams.isLastPar && par_lang != outer_lang));
 
-       if (localswitch
+       if (localswitch_needed
            || (intitle_command && using_begin_end)
            || closing_rtl_ltr_environment
            || ((runparams.isLastPar || close_lang_switch)
diff --git a/status.23x b/status.23x
index 9bdc513..ad33297 100644
--- a/status.23x
+++ b/status.23x
@@ -83,6 +83,8 @@ What's new
 
 - Fix output of key symbols with info inset on the Mac (bug 10641).
 
+- Fix output of table cells with multiple languages (bug 11128).
+
 
 * USER INTERFACE
 

Reply via email to