diff options
author | Paul Phillips <paulp@improving.org> | 2009-05-01 22:37:28 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2009-05-01 22:37:28 +0000 |
commit | 1165c27985e56d102fab5e8e26744b27dd9a3b89 (patch) | |
tree | 003334a0f707b8ed106ee3c39a2c88a84392d2c6 | |
parent | 6befaa0f9dbfebcfc16a1ab02d666124fb776ede (diff) | |
download | scala-1165c27985e56d102fab5e8e26744b27dd9a3b89.tar.gz scala-1165c27985e56d102fab5e8e26744b27dd9a3b89.tar.bz2 scala-1165c27985e56d102fab5e8e26744b27dd9a3b89.zip |
remedied a logic error I accidentally introduced
-rw-r--r-- | src/library/scala/xml/Xhtml.scala | 7 |
1 files changed, 2 insertions, 5 deletions
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) |