Skip to content

Commit

Permalink
tweak: add newline before printing code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
gumptious committed Nov 14, 2019
1 parent 1a4c3b9 commit 58fa1b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/src/reporting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ export const inlineCodeSnippet = (message: string) => chalk.green(message);
*/
export const code = (message: string) => {
console.log(
`${chalk.green(message.split('\n').map((line) => ` ${inlineCodeSnippet(line)}`).join('\n'))}`,
`\n${chalk.green(message.split('\n').map((line) => ` ${inlineCodeSnippet(line)}`).join('\n'))}`,
);
};

0 comments on commit 58fa1b6

Please sign in to comment.