From: Graeme M. <ma...@us...> - 2005-04-22 14:08:38
|
Update of /cvsroot/mailmanager/mailmanager/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24458 Modified Files: Tag: db-backend pg2mbox.py Log Message: Enclose text in CDATA sections. Now it cleanly passes through xmllint. Index: pg2mbox.py =================================================================== RCS file: /cvsroot/mailmanager/mailmanager/scripts/Attic/pg2mbox.py,v retrieving revision 1.1.2.5 retrieving revision 1.1.2.6 diff -u -d -r1.1.2.5 -r1.1.2.6 --- pg2mbox.py 22 Apr 2005 13:49:59 -0000 1.1.2.5 +++ pg2mbox.py 22 Apr 2005 14:08:29 -0000 1.1.2.6 @@ -94,7 +94,7 @@ xml.append(tag('field', name = name, body = b64encode(value), encoding = 'base64')) else: - xml.append(tag('field', name = name, body = value)) + xml.append(tag('field', name = name, body = '<![CDATA[ %s ]]>' % value)) return '\n'.join(xml) def table2xml(cur, table): |