]> granicus.if.org Git - python/commit
[3.8] bpo-37399: Correctly attach tail text to the last element/comment/pi (GH-14856...
authorStefan Behnel <stefan_ml@behnel.de>
Wed, 24 Jul 2019 18:46:01 +0000 (20:46 +0200)
committerGitHub <noreply@github.com>
Wed, 24 Jul 2019 18:46:01 +0000 (20:46 +0200)
commitbb697899aa65d90488af1950ac7cceeb3877d409
tree21f17ac3ad73d5723d3ca5c23cf3cde14ce5fc92
parent63673916464bace8e2147357395fdf3497967ecb
[3.8] bpo-37399: Correctly attach tail text to the last element/comment/pi (GH-14856) (GH-14936)

* bpo-37399: Correctly attach tail text to the last element/comment/pi, even when comments or pis are discarded.
Also fixes the insertion of PIs when "insert_pis=True" is configured for a TreeBuilder.
Lib/test/test_xml_etree.py
Modules/_elementtree.c