Dávid Gábor Bodor <[email protected]> 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 <[email protected]>
<http://bugs.python.org/issue1777134>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com