{"action":"created","issue":{"url":"https://api.github.com/repos/fxbois/web-mode/issues/697","repository_url":"https://api.github.com/repos/fxbois/web-mode","labels_url":"https://api.github.com/repos/fxbois/web-mode/issues/697/labels{/name}","comments_url":"https://api.github.com/repos/fxbois/web-mode/issues/697/comments","events_url":"https://api.github.com/repos/fxbois/web-mode/issues/697/events","html_url":"https://github.com/fxbois/web-mode/pull/697","id":144295367,"number":697,"title":"elixir: fix indenting of do blocks","user":{"login":"utkarshkukreti","id":217126,"avatar_url":"https://avatars.githubusercontent.com/u/217126?v=3","gravatar_id":"","url":"https://api.github.com/users/utkarshkukreti","html_url":"https://github.com/utkarshkukreti","followers_url":"https://api.github.com/users/utkarshkukreti/followers","following_url":"https://api.github.com/users/utkarshkukreti/following{/other_user}","gists_url":"https://api.github.com/users/utkarshkukreti/gists{/gist_id}","starred_url":"https://api.github.com/users/utkarshkukreti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/utkarshkukreti/subscriptions","organizations_url":"https://api.github.com/users/utkarshkukreti/orgs","repos_url":"https://api.github.com/users/utkarshkukreti/repos","events_url":"https://api.github.com/users/utkarshkukreti/events{/privacy}","received_events_url":"https://api.github.com/users/utkarshkukreti/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-29T15:11:46Z","updated_at":"2016-03-29T15:38:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/fxbois/web-mode/pulls/697","html_url":"https://github.com/fxbois/web-mode/pull/697","diff_url":"https://github.com/fxbois/web-mode/pull/697.diff","patch_url":"https://github.com/fxbois/web-mode/pull/697.patch"},"body":"In EEx templates (and Elixir) `if` and `for` must include a `do` before\r\nthe body (unlike ERB/Ruby). In addition, any function can accept a `do`\r\nblock as argument so we should indent anything inside them.\r\n\r\nI just copied the logic from [here](https://github.com/fxbois/web-mode/blob/08078a39814f358a6e37898be2dd28f6ea5c6845/web-mode.el#L3474-L3475) and modified it so please tell me if I did something wrong. It seems to be working fine locally and the test I added passes with `bash run.sh`.\r\n"},"comment":{"url":"https://api.github.com/repos/fxbois/web-mode/issues/comments/202961693","html_url":"https://github.com/fxbois/web-mode/pull/697#issuecomment-202961693","issue_url":"https://api.github.com/repos/fxbois/web-mode/issues/697","id":202961693,"user":{"login":"utkarshkukreti","id":217126,"avatar_url":"https://avatars.githubusercontent.com/u/217126?v=3","gravatar_id":"","url":"https://api.github.com/users/utkarshkukreti","html_url":"https://github.com/utkarshkukreti","followers_url":"https://api.github.com/users/utkarshkukreti/followers","following_url":"https://api.github.com/users/utkarshkukreti/following{/other_user}","gists_url":"https://api.github.com/users/utkarshkukreti/gists{/gist_id}","starred_url":"https://api.github.com/users/utkarshkukreti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/utkarshkukreti/subscriptions","organizations_url":"https://api.github.com/users/utkarshkukreti/orgs","repos_url":"https://api.github.com/users/utkarshkukreti/repos","events_url":"https://api.github.com/users/utkarshkukreti/events{/privacy}","received_events_url":"https://api.github.com/users/utkarshkukreti/received_events","type":"User","site_admin":false},"created_at":"2016-03-29T15:38:07Z","updated_at":"2016-03-29T15:38:07Z","body":"@fxbois yes, done! I believe trailing spaces are ignored by web-mode automatically?"}}