镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Fix: trailing empty paragraph tag in Javadoc - #1526

Open
joaonsk203 wants to merge 1 commit into
google:masterfrom
joaonsk203:fix-empty-javadoc-paragraph
Open

joaonsk203 wants to merge 1 commit into
google:masterfrom
joaonsk203:fix-empty-javadoc-paragraph

Conversation

@joaonsk203

Copy link
Copy Markdown

Description

This PR fixes an issue where an empty <p> tag at the end of a Javadoc comment is not removed during formatting.

The change removes the trailing empty paragraph tag from classic Javadoc comments while preserving the rest of the comment content.

A regression test was added to JavadocFormattingTest to verify that the trailing empty paragraph tag is removed correctly.

Fixes #1150

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

P html tag with no content after is not removed

1 participant