Skip to content

Commit

Permalink
Ensured that trailing whitespace is stripped from comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
artob committed Mar 12, 2019
1 parent 446bdc5 commit b00ac65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion java/src/main/java/org/drydoc/OutputGenerator.java
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ protected String parseComment(final Node node) {
// See: https://static.javadoc.io/com.github.javaparser/javaparser-core/3.13.3/com/github/javaparser/ast/Node.html
// See: https://static.javadoc.io/com.github.javaparser/javaparser-core/3.13.3/com/github/javaparser/ast/comments/Comment.html
final Comment comment = node.getComment().orElse(null);
return (comment != null) ? comment.getContent() : null;
return (comment != null) ? comment.getContent().trim() : null;
}

protected List<String> parseAnnotations(final NodeWithAnnotations<?> node) {
Expand Down

0 comments on commit b00ac65

Please sign in to comment.