bpo-39011: Preserve line endings within ElementTree attributes#18468
Conversation
Line endings within attributes were previously normalized to "\n". This patch removes that normalization, as line endings which were replaced by entity numbers should be preserved in original form.
This updates tests for the changes in white space handling. Also ads entry to NEWS and whatsnew.
|
Hello, and thanks for your contribution! I'm a bot set up to make sure that the project can legally accept this contribution by verifying everyone involved has signed the PSF contributor agreement (CLA). Recognized GitHub usernameWe couldn't find a bugs.python.org (b.p.o) account corresponding to the following GitHub usernames: This might be simply due to a missing "GitHub Name" entry in one's b.p.o account settings. This is necessary for legal reasons before we can look at this contribution. Please follow the steps outlined in the CPython devguide to rectify this issue. You can check yourself to see if the CLA has been received. Thanks again for the contribution, we look forward to reviewing it! |
Codecov Report
@@ Coverage Diff @@
## master #18468 +/- ##
==========================================
- Coverage 82.12% 82.11% -0.01%
==========================================
Files 1955 1954 -1
Lines 588958 583611 -5347
Branches 44428 44427 -1
==========================================
- Hits 483663 479257 -4406
+ Misses 95652 94708 -944
- Partials 9643 9646 +3
Continue to review full report at Codecov.
|
|
Thanks @mefistotelis! |
https://bugs.python.org/issue39011