]> granicus.if.org Git - python/commit
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:08:02 +0000 (20:08 +0200)
committerGitHub <noreply@github.com>
Wed, 24 Jul 2019 18:08:02 +0000 (20:08 +0200)
commitc6cb4cdd21c0c3a09b0617dbfaa7053d3bfa6def
tree6594bbede68651f6be2fdcb4b8db1e537a6bc4f2
parent151b91dfd21a100ecb1eba9e293c0a8695bf3bf5
bpo-37399: Correctly attach tail text to the last element/comment/pi (GH-14856)

* 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