google / google/google-java-format

Tab characters are not removed from single line comment

オープン
#1,149 コメント 0 件 リアクション 2 件 担当者 0 名 GitHub で見る
主要言語
Java
スター
6.2k
フォーク
937
平均マージ
6分
マージ済み PR(30日)
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 はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。