[4suite] Fix for (Pretty)Print bug.

Uche Ogbuji uche.ogbuji at fourthought.com
Thu Sep 21 09:51:44 MDT 2000


Nicolas Chauvat wrote:

> line 371 of xml.dom.ext.Printer.py reads:
> 
>   st = " %s='%s'" % (node.name, TranslateCdata(node.value))
> 
> change it to
> 
>   chars, delimiter = Printer.TranslateCdataAttr(node.value)
>   st = " %s=%s%s%s" % (node.name,delimiter,chars,delimiter)
> 
> and it works.

Not quite.  Use the fix I just posted instead or strange things will
happen if you play with character encodings.

Thanks for helping investigate, though.

-- 
Uche Ogbuji                               Principal Consultant
uche.ogbuji at fourthought.com               +1 303 583 9900 x 101
Fourthought, Inc.                         http://Fourthought.com 
4735 East Walnut St, Ste. C, Boulder, CO 80301-2537, USA
Software-engineering, knowledge-management, XML, CORBA, Linux, Python



More information about the 4suite mailing list