mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Amend a754912
once more
Do not use LTR environment (bidi) at all, since it adds unwanted paragraph breaks. Fixes: #11338
This commit is contained in:
parent
4115d2487f
commit
3a91fed269
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user