This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author scoder
Recipients alex.henderson, eli.bendersky, eric.araujo, loewis, santoso.wijaya, scoder, tshepang
Date 2013-08-11.16:30:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Just to reiterate this point, lxml.etree supports a "pretty_print" flag in its tostring() function and ElementTree.write(). It would thus make sense to support the same thing in ET.

For completeness, the current signature looks like this:

def tostring(element_or_tree, *, encoding=None, method="xml",
             xml_declaration=None, pretty_print=False,
             with_tail=True, standalone=None, doctype=None,
             exclusive=False, with_comments=True,

(The last three options are for C14N serialisation.)
Date User Action Args
2013-08-11 16:30:21scodersetrecipients: + scoder, loewis, eric.araujo, eli.bendersky, santoso.wijaya, tshepang, alex.henderson
2013-08-11 16:30:21scodersetmessageid: <>
2013-08-11 16:30:21scoderlinkissue14465 messages
2013-08-11 16:30:21scodercreate