1.1 --- a/libxml2dom/macrolib/macrolib.py Sat Sep 10 21:59:28 2005 +0000
1.2 +++ b/libxml2dom/macrolib/macrolib.py Mon Oct 10 10:30:03 2005 +0000
1.3 @@ -380,14 +380,14 @@
1.4 else:
1.5 raise NotSupportedError, "parseURI does not yet support HTML"
1.6
1.7 -def toString(node, encoding=None):
1.8 - return libxml2mod.serializeNode(node, encoding, 0)
1.9 +def toString(node, encoding=None, prettyprint=0):
1.10 + return libxml2mod.serializeNode(node, encoding, prettyprint)
1.11
1.12 -def toStream(node, stream, encoding=None):
1.13 - stream.write(toString(node, encoding))
1.14 +def toStream(node, stream, encoding=None, prettyprint=0):
1.15 + stream.write(toString(node, encoding, prettyprint))
1.16
1.17 -def toFile(node, f, encoding=None):
1.18 - libxml2mod.saveNodeTo(node, f, encoding, 0)
1.19 +def toFile(node, f, encoding=None, prettyprint=0):
1.20 + libxml2mod.saveNodeTo(node, f, encoding, prettyprint)
1.21
1.22 # libxml2mod constants.
1.23