Handle linebreaks in wrapText

This commit is contained in:
Dragon Fire
2024-04-21 17:14:54 -04:00
parent adeb238185
commit cccd4f1393
2 changed files with 24 additions and 17 deletions
+1 -1
View File
@@ -213,7 +213,7 @@ module.exports = class TweetCommand extends Command {
ctx.fillText(line, x, y + (23 * currentLine) + (9 * currentLine));
continue;
}
let currentX = x + 0;
let currentX = x;
for (let i = 0; i < lineNoEmoji.length; i++) {
const linePart = lineNoEmoji[i];
ctx.fillText(linePart, currentX, y + (23 * currentLine) + (9 * currentLine));