{"action":"created","issue":{"url":"https://api.github.com/repos/alek-sys/sublimetext_indentxml/issues/80","labels_url":"https://api.github.com/repos/alek-sys/sublimetext_indentxml/issues/80/labels{/name}","comments_url":"https://api.github.com/repos/alek-sys/sublimetext_indentxml/issues/80/comments","events_url":"https://api.github.com/repos/alek-sys/sublimetext_indentxml/issues/80/events","html_url":"https://github.com/alek-sys/sublimetext_indentxml/issues/80","id":109057440,"number":80,"title":"Not indenting the following XML correctly","user":{"login":"amit4got","id":3800830,"avatar_url":"https://avatars.githubusercontent.com/u/3800830?v=3","gravatar_id":"","url":"https://api.github.com/users/amit4got","html_url":"https://github.com/amit4got","followers_url":"https://api.github.com/users/amit4got/followers","following_url":"https://api.github.com/users/amit4got/following{/other_user}","gists_url":"https://api.github.com/users/amit4got/gists{/gist_id}","starred_url":"https://api.github.com/users/amit4got/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amit4got/subscriptions","organizations_url":"https://api.github.com/users/amit4got/orgs","repos_url":"https://api.github.com/users/amit4got/repos","events_url":"https://api.github.com/users/amit4got/events{/privacy}","received_events_url":"https://api.github.com/users/amit4got/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-30T10:22:40Z","updated_at":"2015-10-07T18:21:05Z","closed_at":"2015-10-07T18:21:05Z","body":"Thanks for this plugin! Really helpful right now for me.\r\nUnfortunately I don't have time to look into it now, as my knowledge of Python is quite limited, but the following XML does not indent correctly. Nothing major!\r\n\r\nWhat the plugin returns:\r\n```xml\r\n<Transaction>\r\n    <SequenceNumber>155</SequenceNumber>\r\n    <BeginDateTime>2012-09-11T15:15:48.8233175+01:00</BeginDateTime>\r\n    <RetailTransaction>\r\n        <LineItem>\r\n            <SequenceNumber>1</SequenceNumber>\r\n            <Sale>￼\r\n                \r\n                <ItemID>2</ItemID>\r\n                <Quantity UnitOfMeasureCode=\"Kg\" Units=\"0.25\">1</Quantity></Sale>\r\n        </LineItem>\r\n    </RetailTransaction>\r\n</Transaction>\r\n```\r\n\r\nWhat the plugin should return:\r\n```xml\r\n<Transaction>\r\n    <SequenceNumber>1</SequenceNumber>\r\n    <BeginDateTime>2015-09-30T11:15:48.8233175+01:00</BeginDateTime>\r\n    <RetailTransaction>\r\n        <LineItem>\r\n            <SequenceNumber>1</SequenceNumber>\r\n            <Sale>￼\r\n                <ItemID>1</ItemID>\r\n                <Quantity UnitOfMeasureCode=\"Kg\" Units=\"0.25\">1</Quantity>\r\n            </Sale>\r\n        </LineItem>\r\n    </RetailTransaction>\r\n</Transaction>\r\n```\r\n\r\n:)"},"comment":{"url":"https://api.github.com/repos/alek-sys/sublimetext_indentxml/issues/comments/146283977","html_url":"https://github.com/alek-sys/sublimetext_indentxml/issues/80#issuecomment-146283977","issue_url":"https://api.github.com/repos/alek-sys/sublimetext_indentxml/issues/80","id":146283977,"user":{"login":"alek-sys","id":1092019,"avatar_url":"https://avatars.githubusercontent.com/u/1092019?v=3","gravatar_id":"","url":"https://api.github.com/users/alek-sys","html_url":"https://github.com/alek-sys","followers_url":"https://api.github.com/users/alek-sys/followers","following_url":"https://api.github.com/users/alek-sys/following{/other_user}","gists_url":"https://api.github.com/users/alek-sys/gists{/gist_id}","starred_url":"https://api.github.com/users/alek-sys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alek-sys/subscriptions","organizations_url":"https://api.github.com/users/alek-sys/orgs","repos_url":"https://api.github.com/users/alek-sys/repos","events_url":"https://api.github.com/users/alek-sys/events{/privacy}","received_events_url":"https://api.github.com/users/alek-sys/received_events","type":"User","site_admin":false},"created_at":"2015-10-07T18:21:05Z","updated_at":"2015-10-07T18:21:05Z","body":"There is a weird non-visible symbol after <Sale>, that is the reason. So your source XML is not well-formed. Exclude this symbol and formatting will work.\r\n\r\n![image](https://cloud.githubusercontent.com/assets/1092019/10346707/6d45efe0-6d28-11e5-8f24-6c6ebb565844.png)\r\n"}}