{"action":"opened","issue":{"url":"https://api.github.com/repos/tildeio/htmlbars/issues/434","labels_url":"https://api.github.com/repos/tildeio/htmlbars/issues/434/labels{/name}","comments_url":"https://api.github.com/repos/tildeio/htmlbars/issues/434/comments","events_url":"https://api.github.com/repos/tildeio/htmlbars/issues/434/events","html_url":"https://github.com/tildeio/htmlbars/issues/434","id":116667550,"number":434,"title":"Extraneous empty text nodes when formatting .hbs","user":{"login":"skanderm","id":997770,"avatar_url":"https://avatars.githubusercontent.com/u/997770?v=3","gravatar_id":"","url":"https://api.github.com/users/skanderm","html_url":"https://github.com/skanderm","followers_url":"https://api.github.com/users/skanderm/followers","following_url":"https://api.github.com/users/skanderm/following{/other_user}","gists_url":"https://api.github.com/users/skanderm/gists{/gist_id}","starred_url":"https://api.github.com/users/skanderm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skanderm/subscriptions","organizations_url":"https://api.github.com/users/skanderm/orgs","repos_url":"https://api.github.com/users/skanderm/repos","events_url":"https://api.github.com/users/skanderm/events{/privacy}","received_events_url":"https://api.github.com/users/skanderm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-12T23:40:58Z","updated_at":"2015-11-12T23:40:58Z","closed_at":null,"body":"Formatting htmlbars templates adds extra text nodes at the beginning and end of component elements. e.g.:\r\n```\r\n<span>\r\n  {{text}}\r\n</span>\r\n```\r\n`node.childNodes` will render: `[#text, \"test text\", #text]`, whereas `<span>{{text}}</span>` will render `[\"test text\"]`.\r\n\r\nThis is a problem for us, as we're using `contenteditable` divs and sanitizing nodes is a bit of a pain. It'd be nice to have the option to minify/trim the output.\r\n"}}