From d8eae8f96bffc7bc891300a040e44af7d2e86d69 Mon Sep 17 00:00:00 2001 From: George Shi Date: Mon, 12 Aug 2024 11:45:32 +0800 Subject: [PATCH] fix bug of missing one when line break --- src/misc/b3util.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/misc/b3util.ts b/src/misc/b3util.ts index 085a02a..7b6ae11 100644 --- a/src/misc/b3util.ts +++ b/src/misc/b3util.ts @@ -614,6 +614,7 @@ export const toBreakWord = (str: string, maxWidth: number, fontSize?: string) => width = maxWidth; line++; chars.push("\n"); + i--; } } return {