Title: Inconsistency between indent level in AOSP and non-aosp · Issue #1189 · google/google-java-format · GitHub
Open Graph Title: Inconsistency between indent level in AOSP and non-aosp · Issue #1189 · google/google-java-format
X Title: Inconsistency between indent level in AOSP and non-aosp · Issue #1189 · google/google-java-format
Description: I am not entirely sure wether this is the intended behavior, so here is an issue. The the continuation of the long string doesn't indent with 8 spaces from the previous line which I would expect in AOSP. Test.java public class Test { Str...
Open Graph Description: I am not entirely sure wether this is the intended behavior, so here is an issue. The the continuation of the long string doesn't indent with 8 spaces from the previous line which I would expect in...
X Description: I am not entirely sure wether this is the intended behavior, so here is an issue. The the continuation of the long string doesn't indent with 8 spaces from the previous line which I would expec...
Opengraph URL: https://github.com/google/google-java-format/issues/1189
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Inconsistency between indent level in AOSP and non-aosp","articleBody":"I am not entirely sure wether this is the intended behavior, so here is an issue. The the continuation of the long string doesn't indent with 8 spaces from the previous line which I would expect in AOSP.\n\nTest.java\n```java\npublic class Test {\n String s = \"asdfasdfasdfasdf asdfasdfasdfasdfasdfasdffasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasd\";\n}\n```\n\n```bash\n❯ java -jar ~/Downloads/google-java-format-1.24.0-all-deps.jar Test.java\npublic class Test {\n String s =\n \"asdfasdfasdfasdf\"\n + \" asdfasdfasdfasdfasdfasdffasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasd\";\n}\n```\n\n```bash\n❯ java -jar ~/Downloads/google-java-format-1.24.0-all-deps.jar --aosp Test.java\npublic class Test {\n String s =\n \"asdfasdfasdfasdf\"\n + \" asdfasdfasdfasdfasdfasdffasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasd\";\n}\n```\n\nI would expect the following output using AOSP style\n\n```java\npublic class Test {\n String s =\n \"asdfasdfasdfasdf\"\n + \" asdfasdfasdfasdfasdfasdffasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasd\";\n}\n```\n\nI raised this issue in the spotless repo because I figured that spotless not indenting the same way as GJF would be a spotless bug.\n\nIf this is the intended behavior, please let me know, so that I can reraise the issue at spotless.","author":{"url":"https://github.com/blacksails","@type":"Person","name":"blacksails"},"datePublished":"2024-11-18T11:37:11Z","url":"https://github.com/google/google-java-format/issues/1189"}
| 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:a4df947c-2da4-91fe-5d9c-2351d19e39a8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BA7A:C4A52:86248:B1CF5:6AFBACE1 |
| html-safe-nonce | b7240131f02b2d3e8ce9644df2d26dfc1f37f919ade5c199bbd558a46d9feecb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQTdBOkM0QTUyOjg2MjQ4OkIxQ0Y1OjZBRkJBQ0UxIiwidmlzaXRvcl9pZCI6IjExMTgwMjExNzc2ODAwNDczMjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9b238ba045de7c1e5d042a87049c802a3b601675826043702a046d68fe405e0f |
| hovercard-subject-tag | issue:2668266346 |
| 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/1189/issue_layout |
| twitter:image | https://opengraph.githubassets.com/215e530f277e05d0df17890d3c49c3755f3a61c87fbf510b8a18359e42eeaed8/google/google-java-format/issues/1189 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/215e530f277e05d0df17890d3c49c3755f3a61c87fbf510b8a18359e42eeaed8/google/google-java-format/issues/1189 |
| og:image:alt | I am not entirely sure wether this is the intended behavior, so here is an issue. The the continuation of the long string doesn't indent with 8 spaces from the previous line which I would expect in... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | blacksails |
| hostname | github.com |
| expected-hostname | github.com |
| None | e25fbd830d3e6ad0e8935c105cf4fdc70c593dffcd27bb45b790ae4fece5ea55 |
| 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 | 08c8f17f9d27054a108b8b6254e405de0151f660 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width