diff options
-rw-r--r-- | sources/scala/xml/NodeBuffer.scala | 2 | ||||
-rw-r--r-- | test/files/jvm/serialization.check | 4 | ||||
-rw-r--r-- | test/files/jvm/xmlLiterals.check | 3 | ||||
-rw-r--r-- | test/files/jvm/xmlstuff.check | 3 |
4 files changed, 9 insertions, 3 deletions
diff --git a/sources/scala/xml/NodeBuffer.scala b/sources/scala/xml/NodeBuffer.scala index 008dc85249..b61e24181c 100644 --- a/sources/scala/xml/NodeBuffer.scala +++ b/sources/scala/xml/NodeBuffer.scala @@ -39,6 +39,8 @@ class NodeBuffer extends scala.collection.mutable.ArrayBuffer[Node] { val it = ns.elements; while(it.hasNext) { this &+ it.next; + if (it.hasNext) + this &+ " "; } case _ => super.+(Text(o.toString())); } diff --git a/test/files/jvm/serialization.check b/test/files/jvm/serialization.check index c2728a5401..9e846c3060 100644 --- a/test/files/jvm/serialization.check +++ b/test/files/jvm/serialization.check @@ -74,8 +74,8 @@ x = <html><title>title</title><body></body></html> y = <html><title>title</title><body></body></html> x equals y: true - y equals x: true -x = <html><body><table cellspacing="0" cellpadding="2"><tr><th>Last Name</th><th>First Name</th></tr><tr><td>Tom</td><td>20</td></tr><tr><td>Bob</td><td>22</td></tr><tr><td>James</td><td>19</td></tr></table></body></html> -y = <html><body><table cellspacing="0" cellpadding="2"><tr><th>Last Name</th><th>First Name</th></tr><tr><td>Tom</td><td>20</td></tr><tr><td>Bob</td><td>22</td></tr><tr><td>James</td><td>19</td></tr></table></body></html> +x = <html><body><table cellspacing="0" cellpadding="2"><tr><th>Last Name</th><th>First Name</th></tr><tr><td>Tom</td><td>20</td></tr> <tr><td>Bob</td><td>22</td></tr> <tr><td>James</td><td>19</td></tr></table></body></html> +y = <html><body><table cellspacing="0" cellpadding="2"><tr><th>Last Name</th><th>First Name</th></tr><tr><td>Tom</td><td>20</td></tr> <tr><td>Bob</td><td>22</td></tr> <tr><td>James</td><td>19</td></tr></table></body></html> x equals y: true - y equals x: true x = Tim diff --git a/test/files/jvm/xmlLiterals.check b/test/files/jvm/xmlLiterals.check index 95487bee2f..455284bf76 100644 --- a/test/files/jvm/xmlLiterals.check +++ b/test/files/jvm/xmlLiterals.check @@ -18,7 +18,7 @@ passed ok passed ok passed ok Test03Servlet -<html><head><title>ModularFormatting</title></head><body><h2>Welcome</h2><p>What follows is an example of modular formatting.</p><p><table align="center"><tr><td bgcolor="#AAAAFF" color="#222255"><h1>message</h1></td></tr></table></p><p>1a23.23</p><p><table align="center"><tr><td bgcolor="#AAAAFF" color="#222255"><h1>message</h1></td></tr></table><table align="center"><tr><td bgcolor="#AAAAFF" color="#222255"><h1>message</h1></td></tr></table></p><hr></hr><p>Complicated layout tasks can be encapsulated and outsourced.</p><h2>Bye!</h2></body></html> +<html><head><title>ModularFormatting</title></head><body><h2>Welcome</h2><p>What follows is an example of modular formatting.</p><p><table align="center"><tr><td bgcolor="#AAAAFF" color="#222255"><h1>message</h1></td></tr></table></p><p>1a23.23</p><p><table align="center"><tr><td bgcolor="#AAAAFF" color="#222255"><h1>message</h1></td></tr></table> <table align="center"><tr><td bgcolor="#AAAAFF" color="#222255"><h1>message</h1></td></tr></table></p><hr></hr><p>Complicated layout tasks can be encapsulated and outsourced.</p><h2>Bye!</h2></body></html> <html> <head> <title>ModularFormatting</title> @@ -44,6 +44,7 @@ Test03Servlet </td> </tr> </table> + <table align="center"> <tr> <td bgcolor="#AAAAFF" color="#222255"> diff --git a/test/files/jvm/xmlstuff.check b/test/files/jvm/xmlstuff.check index a4902e1264..2f3424b524 100644 --- a/test/files/jvm/xmlstuff.check +++ b/test/files/jvm/xmlstuff.check @@ -14,9 +14,12 @@ passed ok List(<book><title>Blabla</title></book>) <result> <name>John</name> + <street>Elm Street</street> + <city>Dolphin City</city> <phone where="work">+41 21 693 68 67</phone> + <phone where="mobile">+41 79 602 23 23</phone> </result> patterns |