[issue39011] ElementTree attributes replace "\r" with "\n"
Stefan Behnel
report at bugs.python.org
Mon Dec 23 14:19:53 EST 2019
Stefan Behnel <stefan_ml at behnel.de> added the comment:
I think we did it wrong in issue 17582. Parser behaviour is not a reason why the *serialisation* should modify the content.
Luckily, fixing this does not impact the C14N serialisation (which aims to guarantee byte identical serialisation), but it changes the "normal" serialisation. I would therefore suggest that we remove the newline replacement code in the next release only, Py3.9.
@mefistotelis, do you want to submit a PR?
----------
stage: -> needs patch
versions: +Python 3.9 -Python 3.6, Python 3.8
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39011>
_______________________________________
More information about the Python-bugs-list
mailing list