{"action":"created","issue":{"url":"https://api.github.com/repos/fxbois/web-mode/issues/679","repository_url":"https://api.github.com/repos/fxbois/web-mode","labels_url":"https://api.github.com/repos/fxbois/web-mode/issues/679/labels{/name}","comments_url":"https://api.github.com/repos/fxbois/web-mode/issues/679/comments","events_url":"https://api.github.com/repos/fxbois/web-mode/issues/679/events","html_url":"https://github.com/fxbois/web-mode/issues/679","id":134408972,"number":679,"title":"Auto close erroneously tries to close void elements","user":{"login":"aiguofer","id":780934,"avatar_url":"https://avatars.githubusercontent.com/u/780934?v=3","gravatar_id":"","url":"https://api.github.com/users/aiguofer","html_url":"https://github.com/aiguofer","followers_url":"https://api.github.com/users/aiguofer/followers","following_url":"https://api.github.com/users/aiguofer/following{/other_user}","gists_url":"https://api.github.com/users/aiguofer/gists{/gist_id}","starred_url":"https://api.github.com/users/aiguofer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aiguofer/subscriptions","organizations_url":"https://api.github.com/users/aiguofer/orgs","repos_url":"https://api.github.com/users/aiguofer/repos","events_url":"https://api.github.com/users/aiguofer/events{/privacy}","received_events_url":"https://api.github.com/users/aiguofer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/fxbois/web-mode/labels/auto-stuff","name":"auto-stuff","color":"fef2c0"},{"url":"https://api.github.com/repos/fxbois/web-mode/labels/configuration","name":"configuration","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-17T21:41:03Z","updated_at":"2016-03-07T20:03:15Z","closed_at":"2016-03-07T20:02:52Z","body":"I have the following options set for web-mode:\r\n```elisp\r\n '(web-mode-auto-close-style 2)\r\n '(web-mode-code-indent-offset 3)\r\n '(web-mode-css-indent-offset 3)\r\n '(web-mode-enable-auto-expanding t)\r\n '(web-mode-enable-auto-indentation t)\r\n '(web-mode-enable-sql-detection t)\r\n '(web-mode-markup-indent-offset 3)\r\n '(web-mode-script-padding 0)\r\n '(web-mode-sql-indent-offset 3)\r\n '(web-mode-style-padding 0)\r\n```\r\n\r\nI really like the `auto-close-style 2` to close when I type `>`, however when I'm typing a void tag like `<img>` or `<br>` it automatically tries to close it with the closing tag for the previous element.\r\n\r\nFor example, if I have\r\n```html\r\n<div>\r\n   <img\r\n</div>\r\n```\r\nwhen I close the `<img` I get:\r\n\r\n```html\r\n<div>\r\n   <img></div>\r\n</div>\r\n```"},"comment":{"url":"https://api.github.com/repos/fxbois/web-mode/issues/comments/193425732","html_url":"https://github.com/fxbois/web-mode/issues/679#issuecomment-193425732","issue_url":"https://api.github.com/repos/fxbois/web-mode/issues/679","id":193425732,"user":{"login":"fxbois","id":959622,"avatar_url":"https://avatars.githubusercontent.com/u/959622?v=3","gravatar_id":"","url":"https://api.github.com/users/fxbois","html_url":"https://github.com/fxbois","followers_url":"https://api.github.com/users/fxbois/followers","following_url":"https://api.github.com/users/fxbois/following{/other_user}","gists_url":"https://api.github.com/users/fxbois/gists{/gist_id}","starred_url":"https://api.github.com/users/fxbois/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fxbois/subscriptions","organizations_url":"https://api.github.com/users/fxbois/orgs","repos_url":"https://api.github.com/users/fxbois/repos","events_url":"https://api.github.com/users/fxbois/events{/privacy}","received_events_url":"https://api.github.com/users/fxbois/received_events","type":"User","site_admin":false},"created_at":"2016-03-07T20:03:15Z","updated_at":"2016-03-07T20:03:15Z","body":"@aiguofer I've pushed a new fix"}}