better detect empty body

This commit is contained in:
Brian Long 2025-02-10 15:19:08 -05:00
parent d24aa54e75
commit 5858f56784

View File

@ -222,7 +222,7 @@ class MarkdownWriter {
private void buildDocumentation(DocCommentTree commentTree, JavadocDocumentable docuable) {
if (commentTree.getFirstSentence() != null)
docuable.setDocFirstSentence(this.sanitize(commentTree.getFirstSentence()));
if (commentTree.getBody() != null)
if (commentTree.getFullBody() != null && !commentTree.getFullBody().isEmpty())
docuable.setDocBody(this.sanitize(commentTree.getFullBody()));
}