summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorburaq <buraq@epfl.ch>2004-06-01 14:48:28 +0000
committerburaq <buraq@epfl.ch>2004-06-01 14:48:28 +0000
commit3b1dca4a7f32dc08f9a51c8357c3e57d56c53e0a (patch)
tree20140375730083d63b60cac8055c5e26b3ade4dd
parent668e8ae2685e388dd3bd5a755a5038e0fcc05127 (diff)
downloadscala-3b1dca4a7f32dc08f9a51c8357c3e57d56c53e0a.tar.gz
scala-3b1dca4a7f32dc08f9a51c8357c3e57d56c53e0a.tar.bz2
scala-3b1dca4a7f32dc08f9a51c8357c3e57d56c53e0a.zip
forgot to reset after printing
-rw-r--r--sources/scala/xml/PrettyPrinter.scala1
1 files changed, 1 insertions, 0 deletions
diff --git a/sources/scala/xml/PrettyPrinter.scala b/sources/scala/xml/PrettyPrinter.scala
index edee411acf..13e4b4570b 100644
--- a/sources/scala/xml/PrettyPrinter.scala
+++ b/sources/scala/xml/PrettyPrinter.scala
@@ -108,6 +108,7 @@ class PrettyPrinter( width:Int, step:Int ) {
/* serializes an instance of Node to a string that contains well-formed XML
**/
def toPrettyXML( n:Node ):String = {
+ reset();
traverse( n, 0 );
val sb = new StringBuffer();
var cur = 0;