From b767a9046429a64194e7b92cf0f160ea4bd96bc0 Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Sun, 7 Apr 2024 21:38:04 -0400 Subject: [PATCH] Fix adding unintended space to beginning of messages --- src/ui/message-ui-handler.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ui/message-ui-handler.ts b/src/ui/message-ui-handler.ts index 5fdf6f2cc3d..0f9c849e2c7 100644 --- a/src/ui/message-ui-handler.ts +++ b/src/ui/message-ui-handler.ts @@ -55,7 +55,6 @@ export default abstract class MessageUiHandler extends AwaitableUiHandler { let newText = ''; for (let w = 0; w < textWords.length; w++) { const nextWordText = `${newText} ${textWords[w]}`; - console.log(nextWordText); if (textWords[w].includes('\n')) { newText = nextWordText; lastLineCount++; @@ -69,7 +68,7 @@ export default abstract class MessageUiHandler extends AwaitableUiHandler { } } - text = newText; + text = newText.trimStart(); } if (this.textTimer) {