Bugs item #1472827, was opened at 2006-04-19 15:29 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1472827&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: XML Group: Python 2.4 Status: Open Resolution: None Priority: 5 Submitted By: Mikhail Gusarov (gusarov) Assigned to: Nobody/Anonymous (nobody) Summary: xml.sax.saxutils.XMLGenerator mangles \r\n\t in attributes Initial Comment: 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 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1472827&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com