Skip to content

Commit

Permalink
All comments even BLOCK comments should use system new line setting f…
Browse files Browse the repository at this point in the history
…or printing
  • Loading branch information
Frantisek Simon committed Oct 31, 2024
1 parent e8c8faa commit a5ac273
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/spoon/reflect/visitor/CommentHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ static void printCommentContent(PrinterHelper printer, CtComment comment, Functi
if (commentType == CtComment.CommentType.BLOCK) {
printer.write(transfo.apply(line));
if (hasMoreThanOneElement(content.lines())) {
printer.write(CtComment.LINE_SEPARATOR);
printer.writeln();
}
} else {
printer.write(transfo.apply(line)).writeln(); // removing spaces at the end of the space
Expand Down

0 comments on commit a5ac273

Please sign in to comment.