Skip to content

Commit

Permalink
fix: Use new line symbol from system also for BLOCK comments when pri…
Browse files Browse the repository at this point in the history
…nting (#6052)

Co-authored-by: Frantisek Simon <frantisek.simon@bcas.cz>
  • Loading branch information
GooDer and Frantisek Simon authored Nov 2, 2024
1 parent 3c6e7ef commit a2049a7
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 a2049a7

Please sign in to comment.