Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -160,15 +160,14 @@ private static String formatHeader(final String header, final HeaderFormat forma
final String lineSeparator = System.lineSeparator();
// Apply header format to contents
final String prefix = format.begin() != null ? format.begin() + lineSeparator : "";
final String suffix;
String suffix;
if (format.end() != null) {
if (newLine) {
suffix = lineSeparator + format.end() + lineSeparator + lineSeparator;
} else {
suffix = lineSeparator + format.end() + lineSeparator;
}
suffix = lineSeparator + format.end() + lineSeparator;
} else {
suffix = "";
suffix = lineSeparator;
}
if (newLine) {
suffix = suffix + lineSeparator;
}
return LINE_SPLIT.splitAsStream(header)
.map(line -> {
Expand Down