diff --git a/src/sdm/ui/ConsoleMessageClient.ts b/src/sdm/ui/ConsoleMessageClient.ts index d49d4736..18b8343c 100644 --- a/src/sdm/ui/ConsoleMessageClient.ts +++ b/src/sdm/ui/ConsoleMessageClient.ts @@ -147,7 +147,7 @@ export class ConsoleMessageClient implements MessageClient, SlackMessageClient { private writeToChannel(channels: string[] | string, markdown: string) { const outputText = ` ${marked(`**${channels}**`, this.markedOptions).trim()} ${this.dateString()} ${ marked(markdown, this.markedOptions).trim()}`; - return this.sender(chalk.gray("#") + outputText.split("\n").join("\n\t") + "\n"); + return this.sender(chalk.gray("#") + outputText.split("\n").join("\n ") + "\n"); } public dateString() { diff --git a/test/cli/ui/ConsoleMessageClient.test.ts b/test/cli/ui/ConsoleMessageClient.test.ts index 39425d01..2a177207 100644 --- a/test/cli/ui/ConsoleMessageClient.test.ts +++ b/test/cli/ui/ConsoleMessageClient.test.ts @@ -60,7 +60,7 @@ bold text**`; await subject.addressChannels({ text }, "general"); assert(output.includes(`test some -bold text`)); + bold text`)); }); });