homepage

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 gusarov
Recipients
Date 2006年04月19日.08:29:37
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
xml.sax.saxutils.XMLGenerator does not escape \r, \n,
\t symbols when they are present in the attribute:
startElement("name", {"attrib": "value\nvalue"}) will
result in
<name attrib="value
value">
which will be normalized by XML parser to <name
attrib="value value">
According to the XML specs, to preserve this symbols in
the attribute values, they should be replaced with \xD;
\xA; \x9;
Trivial fix is to replace those characters in
xml.sax.saxutils.writeattr
History
Date User Action Args
2007年08月23日 14:39:33adminlinkissue1472827 messages
2007年08月23日 14:39:33admincreate

AltStyle によって変換されたページ (->オリジナル) /