Fix formatting extra line

This commit is contained in:
Eduard Kuzmenko 2022-07-21 02:12:57 +02:00
parent 6c122e1db0
commit 68a1afe084

View File

@ -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, {