Comment 4 for bug 779448

Revision history for this message
Alistair Grant (akgrant0710) wrote :

I believe the fix is in dumpStartElement in buffers.py:

    def dumpStartElement(self, elem, attrs={}):
        self.write('<%s' % elem)
        for name, value in attrs.items():
            self.write(' %s=%s' % (name, quoteattr(value)))
# self.write(' %s="%s"' % (name, value))
        self.write('>')

With:

from xml.sax.saxutils import quoteattr

Near the start of the file.