[issue5752] xml.dom.minidom does not handle newline characters in attribute values
Tomalak
report at bugs.python.org
Wed May 6 15:45:56 CEST 2009
Tomalak <M8R-t1tut01 at mailinator.com> added the comment:
Of course it should be:
def _write_data(writer, data, is_attrib=False):
"Writes datachars to writer."
data = data.replace("&", "&").replace("<", "<")
data = data.replace("\"", """).replace(">", ">")
if is_attrib:
data = data.replace("\r", " ").replace("\n", " ")
writer.write(data)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5752>
_______________________________________
More information about the Python-bugs-list
mailing list