{"action":"opened","issue":{"url":"https://api.github.com/repos/vkiryukhin/pretty-data/issues/17","repository_url":"https://api.github.com/repos/vkiryukhin/pretty-data","labels_url":"https://api.github.com/repos/vkiryukhin/pretty-data/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/vkiryukhin/pretty-data/issues/17/comments","events_url":"https://api.github.com/repos/vkiryukhin/pretty-data/issues/17/events","html_url":"https://github.com/vkiryukhin/pretty-data/issues/17","id":213018048,"number":17,"title":"Self closed elements break if they are inside element with the same name","user":{"login":"pavelhoral","id":2012726,"avatar_url":"https://avatars2.githubusercontent.com/u/2012726?v=3","gravatar_id":"","url":"https://api.github.com/users/pavelhoral","html_url":"https://github.com/pavelhoral","followers_url":"https://api.github.com/users/pavelhoral/followers","following_url":"https://api.github.com/users/pavelhoral/following{/other_user}","gists_url":"https://api.github.com/users/pavelhoral/gists{/gist_id}","starred_url":"https://api.github.com/users/pavelhoral/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pavelhoral/subscriptions","organizations_url":"https://api.github.com/users/pavelhoral/orgs","repos_url":"https://api.github.com/users/pavelhoral/repos","events_url":"https://api.github.com/users/pavelhoral/events{/privacy}","received_events_url":"https://api.github.com/users/pavelhoral/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-03-09T12:07:10Z","updated_at":"2017-03-09T12:07:10Z","closed_at":null,"body":"The following formats incorrectly:\r\n\r\n```\r\nvar prettyData = require(\"pretty-data\")\r\nconsole.log(prettyData.pd.xml(\"<foo><foo/></foo>\"));\r\n```\r\n\r\n```\r\n<foo>\r\n  <foo/></foo>\r\n```\r\n\r\nThat should be:\r\n\r\n```\r\n<foo>\r\n  <foo/>\r\n</foo>\r\n```"}}
{"actor":{"display_login":"pavelhoral"}}