From 97f616c2c6c19708d01120dfd7d28a49f76ec0e0 Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Wed, 10 Dec 2025 11:05:22 -0500 Subject: [PATCH] Try fixing reporter formatting --- scripts/generateReport.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/generateReport.ts b/scripts/generateReport.ts index 07cd2db8b..56c0041f6 100644 --- a/scripts/generateReport.ts +++ b/scripts/generateReport.ts @@ -87,8 +87,10 @@ const IGNORED_DISCORD_ERRORS = [ function toCodeBlock(s: string, indentation = 0, isDiscord = false) { s = s.replace(/```/g, "`\u200B`\u200B`"); - const indentationStr = Array(!isDiscord ? indentation : 0).fill(" ").join(""); - return `\`\`\`\n${s.split("\n").map(s => indentationStr + s).join("\n")}\n${indentationStr}\`\`\``; + const indentationStr = " ".repeat(!isDiscord ? indentation : 0); + const content = s.split("\n").map(s => indentationStr + s).join("\n"); + + return `\`\`\`\n${content}\n${indentationStr}\`\`\``; } async function printReport() {