From 1165c27985e56d102fab5e8e26744b27dd9a3b89 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Fri, 1 May 2009 22:37:28 +0000 Subject: remedied a logic error I accidentally introduced --- src/library/scala/xml/Xhtml.scala | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/library/scala/xml/Xhtml.scala b/src/library/scala/xml/Xhtml.scala index 2d0b33b6ad..1fe16c71b3 100644 --- a/src/library/scala/xml/Xhtml.scala +++ b/src/library/scala/xml/Xhtml.scala @@ -97,11 +97,8 @@ object Xhtml stripComment: Boolean, convertAmp: Boolean): Unit = { - def isAtomOrText(x: Node) = x match { - case _: Atom[_] | _: Text => true - case _ => false - } - val doSpaces = children forall isAtomOrText // interleave spaces + def isAtomAndNotText(x: Node) = x.isInstanceOf[Atom[_]] && !x.isInstanceOf[Text] + val doSpaces = children forall isAtomAndNotText // interleave spaces for (c <- children.take(children.length - 1)) { toXhtml(c, pscope, sb, stripComment, convertAmp) -- cgit v1.2.3