Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

P html tag with no content after is not removed #1150

Open
romani opened this issue Aug 24, 2024 · 0 comments
Open

P html tag with no content after is not removed #1150

romani opened this issue Aug 24, 2024 · 0 comments

Comments

@romani
Copy link

romani commented Aug 24, 2024

It will be awesome to remove such empty <p> tags. At least there is defenetely no text after it.

https://google.github.io/styleguide/javaguide.html#s7.1.2-javadoc-paragraphs

Each paragraph except the first has <p> immediately before the first word, with no space after it.

$ cat Test.java 
public class Test {
  /**
   * The client's first name.
   *
   * <p>
   */
  public String thirdName;
}

$ java -jar google-java-format-1.23.0-all-deps.jar Test.java > TestUpdated.java

$ diff -u Test.java TestUpdated.java 
$ 
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

No branches or pull requests

1 participant