]> git.lyx.org Git - lyx.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>
Sun, 14 Oct 2018 09:18:07 +0000 (11:18 +0200)
Do not use LTR environment (bidi) at all, since it adds unwanted
paragraph breaks.

Fixes: #11338
(cherry picked from commit 3a91fed26941e2599b5cb5f2924225a73a98f246)

src/Paragraph.cpp

index adbf2908804fb9040dc12c316c721bf997746ca0..545ab0baee24f6796670443b2e3108989c166cf7 100644 (file)
@@ -1095,8 +1095,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")
@@ -1156,12 +1154,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);