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 Dávid.Gábor.Bodor
Recipients BreamoreBoy, Dávid.Gábor.Bodor, ajaksu2, ggenellina, jmg, rrwood, teajay_fr, tseaver, vdupras
Date 2011-03-13.18:10:54
SpamBayes Score 0.000308972
Marked as misclassified No
Message-id <1300039855.85.0.639109429523.issue1777134@psf.upfronthosting.co.za>
In-reply-to
Content
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>
History
Date User Action Args
2011-03-13 18:10:56Dávid.Gábor.Bodorsetrecipients: + Dávid.Gábor.Bodor, tseaver, ggenellina, ajaksu2, jmg, teajay_fr, vdupras, rrwood, BreamoreBoy
2011-03-13 18:10:55Dávid.Gábor.Bodorsetmessageid: <1300039855.85.0.639109429523.issue1777134@psf.upfronthosting.co.za>
2011-03-13 18:10:54Dávid.Gábor.Bodorlinkissue1777134 messages
2011-03-13 18:10:54Dávid.Gábor.Bodorcreate