[issue4147] xml.dom.minidom toprettyxml: omit whitespace for text-only elements

Dan Kenigsberg report at bugs.python.org
Sat Oct 1 20:21:03 CEST 2011


Dan Kenigsberg <danken at redhat.com> added the comment:

Here's another take on fixing this bug, with an accompanying unit test. Personally, I'm monkey-patching xml.dom.minidom in order to avoid it, but please consider fixing it properly upstream.

----------
Added file: http://bugs.python.org/file23286/minidom-Text-toprettyxml.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4147>
_______________________________________


More information about the Python-bugs-list mailing list