{"action":"created","issue":{"url":"https://api.github.com/repos/vkiryukhin/pretty-data/issues/12","repository_url":"https://api.github.com/repos/vkiryukhin/pretty-data","labels_url":"https://api.github.com/repos/vkiryukhin/pretty-data/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/vkiryukhin/pretty-data/issues/12/comments","events_url":"https://api.github.com/repos/vkiryukhin/pretty-data/issues/12/events","html_url":"https://github.com/vkiryukhin/pretty-data/issues/12","id":152977345,"number":12,"title":"XML: Indentation is wrong after self closing tag","user":{"login":"marcofanch","id":1303763,"avatar_url":"https://avatars.githubusercontent.com/u/1303763?v=3","gravatar_id":"","url":"https://api.github.com/users/marcofanch","html_url":"https://github.com/marcofanch","followers_url":"https://api.github.com/users/marcofanch/followers","following_url":"https://api.github.com/users/marcofanch/following{/other_user}","gists_url":"https://api.github.com/users/marcofanch/gists{/gist_id}","starred_url":"https://api.github.com/users/marcofanch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcofanch/subscriptions","organizations_url":"https://api.github.com/users/marcofanch/orgs","repos_url":"https://api.github.com/users/marcofanch/repos","events_url":"https://api.github.com/users/marcofanch/events{/privacy}","received_events_url":"https://api.github.com/users/marcofanch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-05-04T10:13:10Z","updated_at":"2016-09-02T09:39:34Z","closed_at":null,"body":"The prettify works great until it meets self closing tag.\r\n\r\nSeems the module treats the self closing tag as an ordinary open tag. The immediate tag following it will be unnecessarily indented.\r\n\r\n\r\n**Affected version**: 0.40.1\r\n\r\n**Expected result:**\r\n```\r\n<body rid=\"1534525716\" \r\n  xmlns=\"http://jabber.org/protocol/httpbind\" sid=\"2c944b0e-b4a2-4bde-ab49-18f5e6527a72\">\r\n  <message to=\"10109314143906760@example.org\" type=\"chat\" \r\n    xmlns=\"jabber:client\">\r\n    <active \r\n      xmlns=\"http://jabber.org/protocol/chatstates\"/>\r\n  </message>\r\n  <message from=\"5728655f00000101@example.org\" to=\"10109314143906760@example.org\" type=\"chat\" \r\n    xmlns=\"jabber:client\" id=\"10109314143906760@example.org:1462355916836\">\r\n    <active \r\n      xmlns=\"http://jabber.org/protocol/chatstates\"/>\r\n    <body>1</body>\r\n    <request \r\n      xmlns=\"urn:xmpp:receipts\"/>\r\n    <request \r\n      xmlns=\"urn:maaii:receipts:server\"/>\r\n  </message>\r\n</body>\r\n```\r\n\r\n**Actual result:**\r\n```\r\n<body rid=\"1534525716\" \r\n  xmlns=\"http://jabber.org/protocol/httpbind\" sid=\"2c944b0e-b4a2-4bde-ab49-18f5e6527a72\">\r\n  <message to=\"10109314143906760@example.org\" type=\"chat\" \r\n    xmlns=\"jabber:client\">\r\n    <active \r\n      xmlns=\"http://jabber.org/protocol/chatstates\"/>\r\n    </message>\r\n    <message from=\"5728655f00000101@example.org\" to=\"10109314143906760@example.org\" type=\"chat\" \r\n      xmlns=\"jabber:client\" id=\"10109314143906760@example.org:1462355916836\">\r\n      <active \r\n        xmlns=\"http://jabber.org/protocol/chatstates\"/>\r\n        <body>1</body>\r\n        <request \r\n          xmlns=\"urn:xmpp:receipts\"/>\r\n          <request \r\n            xmlns=\"urn:maaii:receipts:server\"/>\r\n          </message>\r\n        </body>\r\n```"},"comment":{"url":"https://api.github.com/repos/vkiryukhin/pretty-data/issues/comments/244330419","html_url":"https://github.com/vkiryukhin/pretty-data/issues/12#issuecomment-244330419","issue_url":"https://api.github.com/repos/vkiryukhin/pretty-data/issues/12","id":244330419,"user":{"login":"Vinorcola","id":2178680,"avatar_url":"https://avatars.githubusercontent.com/u/2178680?v=3","gravatar_id":"","url":"https://api.github.com/users/Vinorcola","html_url":"https://github.com/Vinorcola","followers_url":"https://api.github.com/users/Vinorcola/followers","following_url":"https://api.github.com/users/Vinorcola/following{/other_user}","gists_url":"https://api.github.com/users/Vinorcola/gists{/gist_id}","starred_url":"https://api.github.com/users/Vinorcola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vinorcola/subscriptions","organizations_url":"https://api.github.com/users/Vinorcola/orgs","repos_url":"https://api.github.com/users/Vinorcola/repos","events_url":"https://api.github.com/users/Vinorcola/events{/privacy}","received_events_url":"https://api.github.com/users/Vinorcola/received_events","type":"User","site_admin":false},"created_at":"2016-09-02T09:39:34Z","updated_at":"2016-09-02T09:39:34Z","body":"Hello,\r\n\r\nI run into this issue today also. I agree with @marcofanch , this is an issue. The fact that xmlns is set on a new line should not affect the rest of the indentation.\r\n\r\nExpected result:\r\n\r\n    <atag>\r\n      <sometag\r\n        xmlns=\"some-namespace\"/>\r\n    </atag>\r\n\r\nCurrent result:\r\n\r\n    <atag>\r\n      <sometag\r\n        xmlns=\"some-namespace\"/>\r\n      </atag>\r\n\r\nCurrently, we can notice that the closing tag for \"atag\" is not aligned..."}}
{"actor":{"display_login":"Vinorcola"}}