Skip to content

Commit

Permalink
fix: Correct inverted header newline condition
Browse files Browse the repository at this point in the history
  • Loading branch information
zml2008 committed Sep 4, 2023
1 parent fa6b2f2 commit 45c7483
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public void generate(
if (header != null) {
writer.write(header);
// Only insert a newline if there's absolutely nothing -- otherwise it's up to the header provided
if (header.endsWith("\n")) {
if (!header.endsWith("\n")) {
writer.newLine();
}
}
Expand Down

0 comments on commit 45c7483

Please sign in to comment.