Skip to content

Commit

Permalink
[de] Fix space position after rtl text in ltr paragraph
Browse files Browse the repository at this point in the history
  • Loading branch information
KirillovIlya committed Feb 1, 2025
1 parent b53e85e commit 45626b9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions word/Editor/Paragraph/bidi-flow.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,12 @@
BidiFlow.prototype.add = function(element, bidiType)
{
if (bidiType === AscBidi.TYPE.PM)
{
if (AscBidi.DIRECTION.L === this.direction && this.buffer.length)
this.end();

bidiType = AscBidi.DIRECTION.R === this.direction ? AscBidi.TYPE.R : AscBidi.TYPE.L;
}

if (bidiType === AscBidi.TYPE.B)
this.end();
Expand Down

0 comments on commit 45626b9

Please sign in to comment.