A space is inserted after slash-star /* comments
還沒有人認領這個 Issue。
評估
研究方向
重現短行格式化範例,然後檢查 core/src/main/java/com/google/googlejavaformat/OpsBuilder.java 第 510 行附近的程式碼。判斷 /* comment 後的空格是否是刻意的;如果不是,請確認 formatter 的行為,以及修正後輸出所需的回歸測試涵蓋範圍。
由索引模型根據 Issue 內容生成。
描述
GJF emits the following:
f(43
/*bla */ )
(when the max line width is short enough)
Note the space between the closing */ and the closing ).
This is coming from https://github.com/google/google-java-format/blob/506875dc3f0f1018676c764e5fe58c9a8c216900/core/src/main/java/com/google/googlejavaformat/OpsBuilder.java#L510
Is this intended?
- 主要語言
- Java
- 星號
- 6.2k
- 分支
- 936
- 平均合併
- 6 分鐘
- 30 天內合併 PR
- 3
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
google/google-java-format 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 72/100
google/google-java-format#1094 · 1 則留言 ·
-
難度 5/5 一週以上 新手友好度 15/100
google/google-java-format#1450 · 1 個 reaction ·
-
難度 4/5 3-5 天 新手友好度 55/100
google/google-java-format#1439 · 1 則留言 ·
-
難度 3/5 1-2 天 新手友好度 62/100
google/google-java-format#1436 · 2 則留言 ·
-
難度 3/5 1-2 天 新手友好度 48/100
google/google-java-format#1428 · 4 則留言 ·
查看 google/google-java-format 的全部 Issue
相似的 Issue
-
documentation
難度 2/5 1-3 小時 新手友好度 65/100
inu-appcenter/memorIN-backend#288 ·
-
難度 2/5 1-3 小時 新手友好度 65/100
-
frontend maui-pilot pilot-ask question
難度 2/5 1-3 小時 新手友好度 75/100
-
難度 2/5 1-3 小時 新手友好度 75/100
-
area/plugin
難度 2/5 1-3 小時 新手友好度 75/100
kestra-io/plugin-kestra#190 ·