{"action":"created","issue":{"url":"https://api.github.com/repos/millermedeiros/esformatter/issues/239","labels_url":"https://api.github.com/repos/millermedeiros/esformatter/issues/239/labels{/name}","comments_url":"https://api.github.com/repos/millermedeiros/esformatter/issues/239/comments","events_url":"https://api.github.com/repos/millermedeiros/esformatter/issues/239/events","html_url":"https://github.com/millermedeiros/esformatter/issues/239","id":57794977,"number":239,"title":"Lack of indent on multi-line arrays and strings","user":{"login":"jzaefferer","id":52585,"avatar_url":"https://avatars.githubusercontent.com/u/52585?v=3","gravatar_id":"","url":"https://api.github.com/users/jzaefferer","html_url":"https://github.com/jzaefferer","followers_url":"https://api.github.com/users/jzaefferer/followers","following_url":"https://api.github.com/users/jzaefferer/following{/other_user}","gists_url":"https://api.github.com/users/jzaefferer/gists{/gist_id}","starred_url":"https://api.github.com/users/jzaefferer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jzaefferer/subscriptions","organizations_url":"https://api.github.com/users/jzaefferer/orgs","repos_url":"https://api.github.com/users/jzaefferer/repos","events_url":"https://api.github.com/users/jzaefferer/events{/privacy}","received_events_url":"https://api.github.com/users/jzaefferer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/millermedeiros/esformatter/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-16T11:48:10Z","updated_at":"2015-02-24T01:36:53Z","closed_at":null,"body":"Both of these get wrong indent:\r\n\r\n```js\r\nvar data = [1,\r\n  2];\r\n\r\nvar x = \"abc\" +\r\n  \"efg\";\r\n```\r\n\r\nResult:\r\n```js\r\nvar data = [1,\r\n2];\r\n\r\nvar x = \"abc\" +\r\n\"efg\";\r\n```\r\n\r\nNeither the hook for ArrayExpression nor for BinaryExpression are particularly complicate, but similar to #238, I don't understand enough to figure out the problem. \r\n\r\nThis is one of the few remaining blockers for me."},"comment":{"url":"https://api.github.com/repos/millermedeiros/esformatter/issues/comments/75682339","html_url":"https://github.com/millermedeiros/esformatter/issues/239#issuecomment-75682339","issue_url":"https://api.github.com/repos/millermedeiros/esformatter/issues/239","id":75682339,"user":{"login":"millermedeiros","id":155633,"avatar_url":"https://avatars.githubusercontent.com/u/155633?v=3","gravatar_id":"","url":"https://api.github.com/users/millermedeiros","html_url":"https://github.com/millermedeiros","followers_url":"https://api.github.com/users/millermedeiros/followers","following_url":"https://api.github.com/users/millermedeiros/following{/other_user}","gists_url":"https://api.github.com/users/millermedeiros/gists{/gist_id}","starred_url":"https://api.github.com/users/millermedeiros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/millermedeiros/subscriptions","organizations_url":"https://api.github.com/users/millermedeiros/orgs","repos_url":"https://api.github.com/users/millermedeiros/repos","events_url":"https://api.github.com/users/millermedeiros/events{/privacy}","received_events_url":"https://api.github.com/users/millermedeiros/received_events","type":"User","site_admin":false},"created_at":"2015-02-24T01:36:53Z","updated_at":"2015-02-24T01:36:53Z","body":"for the array we basically need to replicate the logic that I just added to the CallExpression (indent if array item starts on the next line) - I probably won't have time to work on it this week, but should not be too complex to implement.\r\n\r\nPS: the current `ArrayExpression.getIndentEdges` logic seems weird to me so it is probably a better idea to replace the whole thing than try to adapt it."}}