pretty-html seems to be broken in python2.5

Aaron Bentley aaron.bentley at utoronto.ca
Thu Mar 29 02:37:57 BST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Martin Pool wrote:
> I'm trying to build and upload the docs and it looks like the
> pretty-html function won't work in python2.5.  It needs
> htmltreebuilder, which doesn't seem to be present in the version of
> elementtree included with python2.5.

The reason for using htmltreebuilder rather than the default tree
builder is because docutils emits named[1] entity references.  I've
found no way to get the default tree builder to decode named entity
references, though of course it handles numeric ones with no trouble.

[1] (e.g. é rather than é)

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGCxh10F+nu1YWqI0RAkxQAJ9qWzql80xYpjKtHvCeHjEd6+5lHgCeLvaH
w3eR2vXlWao6vy4tflGPtmM=
=Tx6m
-----END PGP SIGNATURE-----



More information about the bazaar mailing list