[issue17582] xml.etree.ElementTree does not preserve whitespaces in attributes
Emiliano Heyns
report at bugs.python.org
Wed Nov 20 18:17:11 EST 2019
Emiliano Heyns <emiliano.heyns at iris-advies.com> 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 <report at bugs.python.org>
<https://bugs.python.org/issue17582>
_______________________________________
More information about the Python-bugs-list
mailing list