Browse Source

Fix formatting extra line

master
Eduard Kuzmenko 2 years ago
parent
commit
68a1afe084
  1. 2
      src/lib/richTextProcessor/wrapRichText.ts

2
src/lib/richTextProcessor/wrapRichText.ts

@ -419,7 +419,7 @@ export default function wrapRichText(text: string, options: Partial<{ @@ -419,7 +419,7 @@ export default function wrapRichText(text: string, options: Partial<{
(lastElement || fragment).append(element);
}
while(nextEntity && nextEntity.offset < (endOffset - 1)) {
while(nextEntity && nextEntity.offset < endOffset) {
++nasty.i;
(element || fragment).append(wrapRichText(nasty.text, {

Loading…
Cancel
Save