From 68a1afe084cc829e788243ecba0191392c55ccd5 Mon Sep 17 00:00:00 2001 From: Eduard Kuzmenko Date: Thu, 21 Jul 2022 02:12:57 +0200 Subject: [PATCH] Fix formatting extra line --- src/lib/richTextProcessor/wrapRichText.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/richTextProcessor/wrapRichText.ts b/src/lib/richTextProcessor/wrapRichText.ts index 7edc9b83..5ca73111 100644 --- a/src/lib/richTextProcessor/wrapRichText.ts +++ b/src/lib/richTextProcessor/wrapRichText.ts @@ -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, {