{"action":"opened","issue":{"url":"https://api.github.com/repos/Talesoft/tale-jade/issues/54","labels_url":"https://api.github.com/repos/Talesoft/tale-jade/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/Talesoft/tale-jade/issues/54/comments","events_url":"https://api.github.com/repos/Talesoft/tale-jade/issues/54/events","html_url":"https://github.com/Talesoft/tale-jade/issues/54","id":128296258,"number":54,"title":"Bug report","user":{"login":"clthck","id":14348482,"avatar_url":"https://avatars.githubusercontent.com/u/14348482?v=3","gravatar_id":"","url":"https://api.github.com/users/clthck","html_url":"https://github.com/clthck","followers_url":"https://api.github.com/users/clthck/followers","following_url":"https://api.github.com/users/clthck/following{/other_user}","gists_url":"https://api.github.com/users/clthck/gists{/gist_id}","starred_url":"https://api.github.com/users/clthck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clthck/subscriptions","organizations_url":"https://api.github.com/users/clthck/orgs","repos_url":"https://api.github.com/users/clthck/repos","events_url":"https://api.github.com/users/clthck/events{/privacy}","received_events_url":"https://api.github.com/users/clthck/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-23T04:13:06Z","updated_at":"2016-01-23T04:13:06Z","closed_at":null,"body":"Here's a code snippet.\r\n```jade\r\neach $a in $arr\r\n    .col: h6= $a\r\nif isset($b):\r\n    h1 Hello\r\n```\r\n\r\nThis should be compiled to...\r\n```php\r\n<?php foreach ($arr as $a) {?>\r\n    <div class=\"col\"><h6><?= $a ?></h6></div>\r\n<?php }?>\r\n<?php if (isset($b)) {?>\r\n    <h1>Hello</h1>\r\n<?php } ?>\r\n```\r\n\r\nBut when I tested it on sandbox, the `if` statement is wrapped inside `foreach` statement."}}