Skip to content

bpo-14465: Add an indent() function to xml.etree.ElementTree to pretty-print XML trees #15200

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Aug 23, 2019

Conversation

scoder
Copy link
Contributor

@scoder scoder commented Aug 10, 2019

@scoder scoder force-pushed the bpo-14465_etree_indent branch from 793f6b6 to 31d2ebb Compare August 15, 2019 15:53
scoder added 3 commits August 15, 2019 18:22
…ead of a dict.

Assuming that the initial indentation is anything reasonable, this will not increase the memory usage much, but visibly speeds up the lookups.
…has either a) a non-empty non-whitespace tail or b) a whitespace tail that we just set, i.e. it is never None nor an empty string.
@scoder
Copy link
Contributor Author

scoder commented Aug 23, 2019

Merging, since there were no objections in the last two weeks.

@scoder scoder merged commit b5d3cee into python:master Aug 23, 2019
@scoder scoder deleted the bpo-14465_etree_indent branch August 23, 2019 14:44
lisroach pushed a commit to lisroach/cpython that referenced this pull request Sep 10, 2019
DinoV pushed a commit to DinoV/cpython that referenced this pull request Jan 14, 2020
websurfer5 pushed a commit to websurfer5/cpython that referenced this pull request Jul 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants