google / google/google-java-format
Tab characters are not removed from single line comment
- 主要语言
- Java
- 星标
- 6.2k
- 派生
- 937
- 平均合并
- 6 分钟
- 30 天内合并 PR
- 3
描述
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
贡献指南
评估
这个 Issue 还没有评估数据。