[issue17582] xml.etree.ElementTree does not preserve whitespaces in attributes

Colton Leekley-Winslow report at bugs.python.org
Wed Oct 15 04:53:09 CEST 2014


Colton Leekley-Winslow added the comment:

Here is a patch.  Please note that in your example \r is replaced by \n per 2.11: http://www.w3.org/TR/REC-xml/#sec-line-ends
Also, the patch is only for ElementTree, I will investigate cElementTree but no promises.

----------
keywords: +patch
nosy: +lwcolton
Added file: http://bugs.python.org/file36929/17582-etree-whitespace.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17582>
_______________________________________


More information about the Python-bugs-list mailing list