Revision 306
Added by Aaron Marcuse-Kubitza almost 13 years ago
lib/xml_dom.py | ||
---|---|---|
164 | 164 |
|
165 | 165 |
_writexml_orig = minidom.Element.writexml |
166 | 166 |
def __Element_writexml(self, writer, indent='', addindent='', newl=''): |
167 |
if isinstance(indent, int): indent = addindent*indent |
|
167 | 168 |
if is_text(self): |
168 | 169 |
self.write_opening(writer, indent, addindent, '') # no newline |
169 | 170 |
writer.write(escape(value(self))) |
Also available in: Unified diff
xml_dom.py: Added support for integer indents