]> git.lyx.org Git - features.git/commitdiff
Amend a754912 once more
authorJuergen Spitzmueller <spitz@lyx.org>
Sat, 13 Oct 2018 11:51:00 +0000 (13:51 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Sat, 13 Oct 2018 11:51:00 +0000 (13:51 +0200)
Do not use LTR environment (bidi) at all, since it adds unwanted
paragraph breaks.

Fixes: #11338
src/Paragraph.cpp

index 42abf41b67676ad688284a2678a2fbfa52e80485..96f95d721ca857815a8ed6472ecf609e3e942a0e 100644 (file)
@@ -1148,8 +1148,6 @@ void Paragraph::Private::latexInset(BufferParams const & bparams,
            // decorations at all
            && inset->lyxCode() != ERT_CODE) {
                if (runparams.use_polyglossia) {
-                       if (style.isEnvironment())
-                               os << "\\begin{LTR}";
                        os << "\\LRE{";
                } else if (running_font.language()->lang() == "farsi"
                           || running_font.language()->lang() == "arabic_arabi")
@@ -1209,12 +1207,8 @@ void Paragraph::Private::latexInset(BufferParams const & bparams,
                throw(e);
        }
 
-       if (close) {
-               if (runparams.use_polyglossia && style.isEnvironment())
-                       os << "\\end{LTR}";
-               else
-                       os << '}';
-       }
+       if (close)
+               os << '}';
 
        if (os.texrow().rows() > previous_row_count) {
                os.texrow().start(owner_->id(), i + 1);