Message87527
I try to explain better what is my opinion:
- If you add the attribute by using setAttribute the newlines are kept
and the toxml works well
- If you add the attribute by using the parsestring, passing it an XML
string the newlines are replaced
- Your patch works only if you act on a well-constructed (i.e.with
newlines kept in internal data structures) xml.dom.minidom.Document
object only, so...
- If you try to execute your patched toxml method of a
xml.dom.minidom.Document constructed using parsestring passing it a
string with newline it does not work.
So your patch works only in a specific case: you are trying to fix a
problem in parsestring, acting on its actual parameter. |
|
Date |
User |
Action |
Args |
2009-05-10 16:24:22 | sechi_francesco | set | recipients:
+ sechi_francesco, Tomalak |
2009-05-10 16:24:22 | sechi_francesco | set | messageid: <1241972662.24.0.736217789456.issue5752@psf.upfronthosting.co.za> |
2009-05-10 16:24:21 | sechi_francesco | link | issue5752 messages |
2009-05-10 16:24:20 | sechi_francesco | create | |
|