src/Pure/General/pretty.scala
changeset 48996 a8bad1369ada
parent 48704 85a3de10567d
child 49414 d7b5fb2e9ca2
--- a/src/Pure/General/pretty.scala	Wed Aug 29 12:18:21 2012 +0200
+++ b/src/Pure/General/pretty.scala	Wed Aug 29 12:55:41 2012 +0200
@@ -65,9 +65,7 @@
   private def standard_format(tree: XML.Tree): XML.Body =
     tree match {
       case XML.Elem(markup, body) => List(XML.Elem(markup, body.flatMap(standard_format)))
-      case XML.Text(text) =>
-        Library.separate(FBreak,
-          Library.chunks(text).toList.map((s: CharSequence) => XML.Text(s.toString)))
+      case XML.Text(text) => Library.separate(FBreak, split_lines(text).map(XML.Text))
     }
 
   private sealed case class Text(tx: XML.Body = Nil, val pos: Double = 0.0, val nl: Int = 0)