]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-39011: Preserve line endings within ElementTree attributes (GH-18468)
authormefistotelis <listom@gmail.com>
Sun, 12 Apr 2020 12:51:58 +0000 (14:51 +0200)
committerGitHub <noreply@github.com>
Sun, 12 Apr 2020 12:51:58 +0000 (14:51 +0200)
commit5fd8123dfdf6df0a9c29363c8327ccfa0c1d41ac
treee2e54c6f4857356fec8c334a5d12b01ae3ca7ebd
parent8f87eefe7f0576c05c488874eb9601a7a87c7312
bpo-39011: Preserve line endings within ElementTree attributes (GH-18468)

* bpo-39011: Preserve line endings within attributes

Line endings within attributes were previously normalized to "\n" in Py3.7/3.8.
This patch removes that normalization, as line endings which were
replaced by entity numbers should be preserved in original form.
Doc/whatsnew/3.9.rst
Lib/test/test_xml_etree.py
Lib/xml/etree/ElementTree.py
Misc/NEWS.d/next/Library/2020-02-12-01-48-51.bpo-39011.hGve_t.rst [new file with mode: 0644]