Fix adding unintended space to beginning of messages
This commit is contained in:
parent
13167a3901
commit
b767a90464
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue