Try fixing reporter formatting

This commit is contained in:
thororen1234 2025-12-10 11:05:22 -05:00
parent feeb522dff
commit 97f616c2c6
No known key found for this signature in database

View file

@ -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() {