google / google/google-java-format

P html tag with no content after is not removed

Open
#1,150 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
6.2k
Forks
937
Avg merge
6m
Merged PRs (30d)
3

Description

It will be awesome to remove such empty `

` 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 `

` immediately before the first word, with no space after it.


```
$ cat Test.java
public class Test {
/**
* The client's first name.
*
*


*/
public String thirdName;
}

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

$ diff -u Test.java TestUpdated.java
$
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.