From 3a91fed26941e2599b5cb5f2924225a73a98f246 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Sat, 13 Oct 2018 13:51:00 +0200 Subject: [PATCH] Amend a754912 once more Do not use LTR environment (bidi) at all, since it adds unwanted paragraph breaks. Fixes: #11338 --- src/Paragraph.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp index 42abf41b67..96f95d721c 100644 --- a/src/Paragraph.cpp +++ b/src/Paragraph.cpp @@ -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);