[issue17372] provide pretty printer for xml.etree.ElementTree

2013-08-05 Thread Laszlo Papp
Laszlo Papp added the comment: This has just made me switching away from xml.etree.ElementTree today, sadly. What a pity; it would have been all kind of cool to stick to this minimal, otherwise working parser and builder. -- nosy: +lpapp ___ Python

[issue17372] provide pretty printer for xml.etree.ElementTree

2013-08-03 Thread Eli Bendersky
Eli Bendersky added the comment: I've noticed this is a duplicate of issue #14465. Closing it - let's continue the discussion there, when the time comes. -- resolution: -> duplicate stage: needs patch -> committed/rejected status: open -> closed superseder: -> xml.etree.ElementTree: a

[issue17372] provide pretty printer for xml.etree.ElementTree

2013-08-01 Thread Eli Bendersky
Eli Bendersky added the comment: Thanks for the report (Eric) and the patch (Alex). There are currently some open bugs we need to handle first, so this is somewhat lower priority. I hope to get to it before the 3.4 release. -- ___ Python tracker

[issue17372] provide pretty printer for xml.etree.ElementTree

2013-07-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +eli.bendersky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue17372] provide pretty printer for xml.etree.ElementTree

2013-07-07 Thread Alex Henderson
Alex Henderson added the comment: One other design decision - currently it doesn't deal with the indentation of comments or processing instructions: it leaves them unindented. Should they be indented the same as other tags? -- ___ Python tracker

[issue17372] provide pretty printer for xml.etree.ElementTree

2013-07-07 Thread Alex Henderson
Alex Henderson added the comment: I have attached a proposed patch. This makes some design decisions which I would like someone to review: a) To incorporate pretty-printing into the main write() method rather than adding a separate toprettyxml() method. Disadvantages: greater complexity of _s

[issue17372] provide pretty printer for xml.etree.ElementTree

2013-03-06 Thread Eric Snow
New submission from Eric Snow: minidom already has something like this: http://docs.python.org/3/library/xml.dom.minidom.html#xml.dom.minidom.Node.toprettyxml This is something that appears to have almost made it in quite a while ago: http://effbot.org/zone/element-lib.htm#prettyprint http://s