Skip to content

Commit fa0d78d

Browse files
committed
chore(format): remove linebreaks from output
this let to too many linebreaks in certain situations
1 parent aa5d1bc commit fa0d78d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

@commitlint/format/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function formatInput(result = {}, options = {}) {
3131

3232
const sign = '⧗';
3333
const decoration = enabled ? chalk.gray(sign) : sign;
34-
const commitText = errors.length > 0 ? `\n${input}\n` : input.split('\n')[0];
34+
const commitText = errors.length > 0 ? input : input.split('\n')[0];
3535

3636
const decoratedInput = enabled ? chalk.bold(commitText) : commitText;
3737

0 commit comments

Comments
 (0)