google / google/google-java-format

Formatter repeatedly adds <p> tags to @code blocks inside Javadoc

Đang mở
#254 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Java
Star
6.2k
Fork
937
Merge trung bình
6 phút
Pull request đã merge (30 ngày)
3

Mô tả

The formatter repeatedly adds

tags to items inside an \@code block in Javadoc.

Expected: consistent output when the formatter is run repeatedly
Impact: Difficulty adding the formatter to our CI

```
$ cat Example.java

package com.foo.bar;

/**
* {@code public enum MyFile {
*
*

// A cool new thing
*
* } }
*/

$ java -jar google-java-format-1.5-all-deps.jar -i Example.java
$ cat Example.java

package com.foo.bar;

/**
* {@code public enum MyFile {
*
*

// A cool new thing
*
*

} }
*/

$ java -jar google-java-format-1.5-all-deps.jar -i Example.java
$ cat Example.java
package com.foo.bar;

/**
* {@code public enum MyFile {
*
*

// A cool new thing
*
*

} }
*/
```

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.