Message87332
@Francesco Sechi: Would it not just require a minimal change to the
_write_data() method? Something along the lines of (sorry, no Python
expert, maybe I am way off):
def _write_data(writer, data, is_attrib=False):
"Writes datachars to writer."
if is_attrib:
data = data.replace("\r", " ").replace("\n", " ")
data = data.replace("&", "&").replace("<", "<")
data = data.replace("\"", """).replace(">", ">")
writer.write(data)
and in Element.writexml():
#[...]
for a_name in a_names:
writer.write(" %s=\"" % a_name)
_write_data(writer, attrs[a_name].value, True)
#[...] |
|
Date |
User |
Action |
Args |
2009-05-06 13:42:33 | Tomalak | set | recipients:
+ Tomalak, sechi_francesco |
2009-05-06 13:42:33 | Tomalak | set | messageid: <1241617353.08.0.16356945794.issue5752@psf.upfronthosting.co.za> |
2009-05-06 13:42:32 | Tomalak | link | issue5752 messages |
2009-05-06 13:42:31 | Tomalak | create | |
|