消息 [194902]
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.
http://lxml.de/api.html#serialisation
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,
inclusive_ns_prefixes=None):
(The last three options are for C14N serialisation.) |
|
| 日期 |
用户 |
动作 |
参数 |
| 2013-08-11 16:30:21 | scoder | 修改 | recipients:
+ scoder, loewis, eric.araujo, eli.bendersky, santoso.wijaya, tshepang, alex.henderson |
| 2013-08-11 16:30:21 | scoder | 修改 | messageid: <1376238621.61.0.742683972156.issue14465@psf.upfronthosting.co.za> |
| 2013-08-11 16:30:21 | scoder | 链接 | issue14465 messages |
| 2013-08-11 16:30:21 | scoder | 创建 | |
|