Title: Handling of trailing tabs in comments not idempotent · Issue #422 · google/google-java-format · GitHub
Open Graph Title: Handling of trailing tabs in comments not idempotent · Issue #422 · google/google-java-format
X Title: Handling of trailing tabs in comments not idempotent · Issue #422 · google/google-java-format
Description: When formatting the following code class Foo { void f() { int x = 0; // comment
Open Graph Description: When formatting the following code class Foo { void f() { int x = 0; // comment
X Description: When formatting the following code class Foo { void f() { int x = 0; // comment<TAB><TAB><TAB> return; } } where <TAB> represents ASCII 0x09 character the formatter removes ...
Opengraph URL: https://github.com/google/google-java-format/issues/422
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Handling of trailing tabs in comments not idempotent","articleBody":"When formatting the following code\r\n\r\n```\r\nclass Foo {\r\n void f() {\r\n int x = 0; // comment\u003cTAB>\u003cTAB>\u003cTAB>\r\n return;\r\n }\r\n}\r\n```\r\nwhere `\u003cTAB>` represents ASCII 0x09 character the formatter removes the last tab character.\r\nThus when you apply the formatter again, it also removes the last tab.\r\nExpected behavior would be either all trailing tabs removed or kept.\r\n\r\nAs Unicode reader discards last character if it is a whitespace preseving tabs would be difficult.","author":{"url":"https://github.com/Eckaaaaaat","@type":"Person","name":"Eckaaaaaat"},"datePublished":"2019-12-12T09:14:41Z","url":"https://github.com/google/google-java-format/issues/422"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d14898f9-a1ee-2489-29b2-b59fad31c538 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A240:5C090:4ADF18:65D696:6AFBF0AD |
| html-safe-nonce | 2515d8f2e16e4fb618c2727837d2603887c37dcf91f18ad9b519e22f4487eae6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMjQwOjVDMDkwOjRBREYxODo2NUQ2OTY6NkFGQkYwQUQiLCJ2aXNpdG9yX2lkIjoiNzczNDE4NTY1MTY3NDU0MjI1MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6eeca08942fe561e405eb9706680928307f9dcfb9805b2a50e8b276477a84841 |
| hovercard-subject-tag | issue:536848574 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/google/google-java-format/422/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8d6d4a300ee95e0558f120043491d785d9fa10a781cda55939bdef05b1a57632/google/google-java-format/issues/422 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8d6d4a300ee95e0558f120043491d785d9fa10a781cda55939bdef05b1a57632/google/google-java-format/issues/422 |
| og:image:alt | When formatting the following code class Foo { void f() { int x = 0; // comment |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Eckaaaaaat |
| hostname | github.com |
| expected-hostname | github.com |
| None | fa74413a1d84dac536fcca0740780bcbd3207bafec0e51873b73ff8e8cca032f |
| turbo-cache-control | no-preview |
| go-import | github.com/google/google-java-format git https://github.com/google/google-java-format.git |
| octolytics-dimension-user_id | 1342004 |
| octolytics-dimension-user_login | |
| octolytics-dimension-repository_id | 35448780 |
| octolytics-dimension-repository_nwo | google/google-java-format |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 35448780 |
| octolytics-dimension-repository_network_root_nwo | google/google-java-format |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b3b5633a74535d9c23385512d534c66c8fde1907 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width