google-java-format icon indicating copy to clipboard operation
google-java-format copied to clipboard

P html tag with no content after is not removed

Open romani opened this issue 1 year ago • 0 comments

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 
$ 

romani avatar Aug 24 '24 15:08 romani