[issue1777134] minidom pretty xml output improvement
Dávid Gábor Bodor
report at bugs.python.org
Sun Mar 13 19:10:55 CET 2011
Dávid Gábor Bodor <david.gabor.bodor at gmail.com> added the comment:
I would prefer to see this improvement as an option, rather than the default, because I believe that 'Issue4147' satisfies "pretty printing" better.
While leaving out whitespace from text-only elements is benefical for compatibility and roundtripping, there are certain situation where it hurts the prettyness of the xml really hard, an example:
<root>
<element1>
TextNode1
<childnode2 />
<childnode3 />
TextNode4
</element1>
<element2>TextNode</element2>
</root>
vs.
<root>
<element1>TextNode1<childnode2 />
<childnode3 />TextNode4</element1>
<element2>TextNode</element2>
</root>
----------
nosy: +Dávid.Gábor.Bodor
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1777134>
_______________________________________
More information about the Python-bugs-list
mailing list