This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author sechi_francesco
Recipients Tomalak, sechi_francesco
Date 2009-05-10.16:24:20
SpamBayes Score 1.0850285e-05
Marked as misclassified No
Message-id <1241972662.24.0.736217789456.issue5752@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2009-05-10 16:24:22sechi_francescosetrecipients: + sechi_francesco, Tomalak
2009-05-10 16:24:22sechi_francescosetmessageid: <1241972662.24.0.736217789456.issue5752@psf.upfronthosting.co.za>
2009-05-10 16:24:21sechi_francescolinkissue5752 messages
2009-05-10 16:24:20sechi_francescocreate