summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authormefistotelis <listom@gmail.com>2020-04-12 12:51:58 (GMT)
committerGitHub <noreply@github.com>2020-04-12 12:51:58 (GMT)
commit5fd8123dfdf6df0a9c29363c8327ccfa0c1d41ac (patch)
treee2e54c6f4857356fec8c334a5d12b01ae3ca7ebd /Doc
parent8f87eefe7f0576c05c488874eb9601a7a87c7312 (diff)
downloadcpython-5fd8123dfdf6df0a9c29363c8327ccfa0c1d41ac.zip
cpython-5fd8123dfdf6df0a9c29363c8327ccfa0c1d41ac.tar.gz
cpython-5fd8123dfdf6df0a9c29363c8327ccfa0c1d41ac.tar.bz2
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.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/whatsnew/3.9.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.9.rst b/Doc/whatsnew/3.9.rst
index 3beb721..6cd80ce 100644
--- a/Doc/whatsnew/3.9.rst
+++ b/Doc/whatsnew/3.9.rst
@@ -412,6 +412,15 @@ customization consistently by always using the value specified by
case), and one used ``__VENV_NAME__`` instead.
(Contributed by Brett Cannon in :issue:`37663`.)
+xml
+---
+
+White space characters within attributes are now preserved when serializing
+:mod:`xml.etree.ElementTree` to XML file. EOLNs are no longer normalized
+to "\n". This is the result of discussion about how to interpret
+section 2.11 of XML spec.
+(Contributed by Mefistotelis in :issue:`39011`.)
+
Optimizations
=============