{"action":"created","issue":{"url":"https://api.github.com/repos/supernovus/exemel/issues/16","labels_url":"https://api.github.com/repos/supernovus/exemel/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/supernovus/exemel/issues/16/comments","events_url":"https://api.github.com/repos/supernovus/exemel/issues/16/events","html_url":"https://github.com/supernovus/exemel/issues/16","id":60080746,"number":16,"title":"Get xml text out unprocessed","user":{"login":"MARTIMM","id":6500673,"avatar_url":"https://avatars.githubusercontent.com/u/6500673?v=3","gravatar_id":"","url":"https://api.github.com/users/MARTIMM","html_url":"https://github.com/MARTIMM","followers_url":"https://api.github.com/users/MARTIMM/followers","following_url":"https://api.github.com/users/MARTIMM/following{/other_user}","gists_url":"https://api.github.com/users/MARTIMM/gists{/gist_id}","starred_url":"https://api.github.com/users/MARTIMM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MARTIMM/subscriptions","organizations_url":"https://api.github.com/users/MARTIMM/orgs","repos_url":"https://api.github.com/users/MARTIMM/repos","events_url":"https://api.github.com/users/MARTIMM/events{/privacy}","received_events_url":"https://api.github.com/users/MARTIMM/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-06T09:53:40Z","updated_at":"2015-03-06T21:30:34Z","closed_at":null,"body":"When I do something like ```$xml-text ~= $xml-document.root;``` all text from XML::Text elements are processed in such a way that all whithespace is reduced to one space. For some elements like \\<pre\\>\\</pre\\> in html this is not desired. How can I change this? Or is another method needed in your package"},"comment":{"url":"https://api.github.com/repos/supernovus/exemel/issues/comments/77639581","html_url":"https://github.com/supernovus/exemel/issues/16#issuecomment-77639581","issue_url":"https://api.github.com/repos/supernovus/exemel/issues/16","id":77639581,"user":{"login":"MARTIMM","id":6500673,"avatar_url":"https://avatars.githubusercontent.com/u/6500673?v=3","gravatar_id":"","url":"https://api.github.com/users/MARTIMM","html_url":"https://github.com/MARTIMM","followers_url":"https://api.github.com/users/MARTIMM/followers","following_url":"https://api.github.com/users/MARTIMM/following{/other_user}","gists_url":"https://api.github.com/users/MARTIMM/gists{/gist_id}","starred_url":"https://api.github.com/users/MARTIMM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MARTIMM/subscriptions","organizations_url":"https://api.github.com/users/MARTIMM/orgs","repos_url":"https://api.github.com/users/MARTIMM/repos","events_url":"https://api.github.com/users/MARTIMM/events{/privacy}","received_events_url":"https://api.github.com/users/MARTIMM/received_events","type":"User","site_admin":false},"created_at":"2015-03-06T21:30:34Z","updated_at":"2015-03-06T21:30:34Z","body":"I've found a way to cope with it;\r\n```\r\nclass My-xml::Text is XML::Text {\r\n  method Str {\r\n    return $.text;\r\n  }\r\n}\r\n```\r\nThen later instead of ``` $some-element.append(XML::Text.new(:$text)); ``` use the new class\r\n``` $some-element.append(My-xml::Text.new(:$text)); ```\r\n"}}