Skip to content

Commit 669d3e7

Browse files
committed
fix: add issue leading empty when body is empty
1 parent 3724f81 commit 669d3e7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/prompts/footer-maker.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ export function issueFilterFactory(rules: QualifiedRules): InquirerQuestion<Answ
4646
return pipeWith<string>(
4747
value,
4848
v => maxLineLengthFilter(v, rules['footer-max-line-length']),
49-
v => (answers.isBreaking ? '\n\n' : '') + v
49+
v => leadingBlankFilter(v, rules['footer-leading-blank']),
50+
v => (answers.isBreaking ? '\n' : '') + v
5051
);
5152
};
5253
}

0 commit comments

Comments
 (0)