diff options
Diffstat (limited to 'sources/scala/xml/PrettyPrinter.scala')
-rw-r--r-- | sources/scala/xml/PrettyPrinter.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/scala/xml/PrettyPrinter.scala b/sources/scala/xml/PrettyPrinter.scala index aa5181326f..0e48042b48 100644 --- a/sources/scala/xml/PrettyPrinter.scala +++ b/sources/scala/xml/PrettyPrinter.scala @@ -126,7 +126,7 @@ class PrettyPrinter( width:Int, step:Int ) { val it = n.child.elements; while( it.hasNext ) it.next match { - case _:Text[Any] | _:Comment | _:EntityRef | _:ProcInstr => + case _:Atom[Any] | _: Molecule[Any] | _:Comment | _:EntityRef | _:ProcInstr => case _:Node => return true; } return false @@ -135,7 +135,7 @@ class PrettyPrinter( width:Int, step:Int ) { protected def traverse( node:Node, pscope: NamespaceBinding, ind:int ):Unit = { node match { - case _:Text[Any] | _:Comment | _:EntityRef | _:ProcInstr => + case _:Atom[Any] | _:Molecule[Any] | _:Comment | _:EntityRef | _:ProcInstr => makeBox( ind, node.toString() ); case _:Node => |