google / google/google-java-format
Tab characters are not removed from single line comment
- Langage dominant
- Java
- Étoiles
- 6.2k
- Forks
- 937
- Merge moyen
- 6 min
- PR mergées (30 j)
- 3
Description
content with tab:
```
public class Test {
/**
* The client's first name.
*
* @serialField serial String some test some testsome testsome testsome testsome testsome test
* Path components separated by separator loooooooooooooooonooooooooooooooooooooog.
*/
public String thirdName;
// here is tab .
private serial serial;
}
```
visualization of tabs and formatting:
```
$ cat -A Test.java
public class Test {$
/**$
* The client's first name.$
*$
* @serialField serial String some test some testsome testsome testsome testsome testsome test$
* ^I^I^IPath components separated by separator loooooooooooooooonooooooooooooooooooooog.$
*/$
public String^IthirdName;$
// here is tab ^I.$
private serial^Iserial;$
}$
$ java -jar google-java-format-1.23.0-all-deps.jar Test.java > TestUpdated.java
$ cat -T TestUpdated.java
public class Test {
/**
* The client's first name.
*
* @serialField serial String some test some testsome testsome testsome testsome testsome test
* Path components separated by separator loooooooooooooooonooooooooooooooooooooog.
*/
public String thirdName;
// here is tab ^I.
private serial serial;
}
```
all tabs are removed except for singleline comment
Guide de contribution
Ouvrir le guide de contribution
Évaluation
Cette issue n'a pas encore été évaluée.