Emiliano Heyns <[email protected]> added the comment:
I don't see newlines currently preserved in attributes:
elem = ET.parse(StringIO('<test a=" \nab\n "/>')).getroot()
print(ET.tostring(elem))
----------
components: -XML
nosy: +Emiliano Heyns
versions: -Python 3.4, Python 3.5, Python 3.6
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue17582>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com