diff options
author | buraq <buraq@epfl.ch> | 2004-05-26 18:07:35 +0000 |
---|---|---|
committer | buraq <buraq@epfl.ch> | 2004-05-26 18:07:35 +0000 |
commit | 8dcb4da871915fcbd55b062843332d5b9c2e0ac8 (patch) | |
tree | f6cc698e4549c3c0db1c534ffd456ba79929d93a /test | |
parent | 02a6574294afe8355be2654e96ec9ec5f540306c (diff) | |
download | scala-8dcb4da871915fcbd55b062843332d5b9c2e0ac8.tar.gz scala-8dcb4da871915fcbd55b062843332d5b9c2e0ac8.tar.bz2 scala-8dcb4da871915fcbd55b062843332d5b9c2e0ac8.zip |
pretty-print + whitespace trimming
Diffstat (limited to 'test')
-rw-r--r-- | test/files/jvm/xmlLiterals.check | 43 | ||||
-rw-r--r-- | test/files/jvm/xmlLiterals.scala | 4 |
2 files changed, 24 insertions, 23 deletions
diff --git a/test/files/jvm/xmlLiterals.check b/test/files/jvm/xmlLiterals.check index cf4493ca54..c68baec2d9 100644 --- a/test/files/jvm/xmlLiterals.check +++ b/test/files/jvm/xmlLiterals.check @@ -16,29 +16,28 @@ 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><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> - <hr></hr> - <p> - Complicated layout tasks can be encapsulated and outsourced. - </p> - <h2>Bye!</h2> - </body> - </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> + <hr></hr> + <p>Complicated layout tasks can be encapsulated and outsourced.</p> + <h2>Bye!</h2> + </body> +</html> Test04 ArrayBuffer(<foo></foo>, <bar>Text</bar>, <foo></foo>) <foo></foo> diff --git a/test/files/jvm/xmlLiterals.scala b/test/files/jvm/xmlLiterals.scala index 6054801bcf..3b20525159 100644 --- a/test/files/jvm/xmlLiterals.scala +++ b/test/files/jvm/xmlLiterals.scala @@ -219,7 +219,9 @@ object Test03Servlet { } def main( args:Array[String] ) = { - Console.println( doGetXML() ); + val x = doGetXML(); + Console.println( x ); + Console.println( new PrettyPrinter( 80, 2 ).toPrettyXML( x )); } } |