google / google/google-java-format

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

Abierto
#254 1 comentario 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Java
Estrellas
6.2k
Forks
937
Merge medio
6 min
PR fusionados (30 d)
3

Descripción

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

} }
*/
```

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.