kwin commented on code in PR #236: URL: https://github.com/apache/maven-doxia/pull/236#discussion_r1798473474
########## doxia-sink-api/src/main/java/org/apache/maven/doxia/sink/Sink.java: ########## @@ -1724,6 +1724,17 @@ public interface Sink extends AutoCloseable { */ void comment(String comment); + /** + * Add a comment. The default implementation will just call {@link #comment(String)}. + * + * @param comment The comment to write. + * @param isBlockComment If <code>true</code> this is a block comment, i.e. nothing should follow on the same line + * @since 2.1 + */ + default void comment(String comment, boolean isBlockComment) { + comment(comment); + } Review Comment: I am still thinking about a more suitable name, because this only affects the suffix, but not the prefix of the comment (i.e. in case of `true` the comment is not necessarily the only thing in the line). Any good idea here? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org