Try fixing reporter formatting
This commit is contained in:
parent
feeb522dff
commit
97f616c2c6
1 changed files with 4 additions and 2 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue