Skip to content

Commit

Permalink
Properly align split lines
Browse files Browse the repository at this point in the history
  • Loading branch information
cdupuis committed Aug 24, 2018
1 parent cb7a09d commit f09c16c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/sdm/ui/ConsoleMessageClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion test/cli/ui/ConsoleMessageClient.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ bold text**`;

await subject.addressChannels({ text }, "general");
assert(output.includes(`test some
bold text`));
bold text`));
});

});

0 comments on commit f09c16c

Please sign in to comment.