diff options
author | Paul Phillips <paulp@improving.org> | 2011-10-04 21:33:31 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-10-04 21:33:31 +0000 |
commit | ea562b4177eee9f8a00ac9005b7a786d7370563e (patch) | |
tree | 0078a3e0cda288a2b38c463e66f6ad81abdfa9f3 /src/library | |
parent | 10938bfc062511bbb19fe697235332e0e303ceab (diff) | |
download | scala-ea562b4177eee9f8a00ac9005b7a786d7370563e.tar.gz scala-ea562b4177eee9f8a00ac9005b7a786d7370563e.tar.bz2 scala-ea562b4177eee9f8a00ac9005b7a786d7370563e.zip |
Restores XML entity fix.
Did something eat some whitespace? I don't know. This is almost the same
commit as r25783, but with different whitespace. No review.
Diffstat (limited to 'src/library')
-rw-r--r-- | src/library/scala/xml/Utility.scala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/library/scala/xml/Utility.scala b/src/library/scala/xml/Utility.scala index 4d6712419c..9f230a7866 100644 --- a/src/library/scala/xml/Utility.scala +++ b/src/library/scala/xml/Utility.scala @@ -364,14 +364,14 @@ object Utility extends AnyRef with parsing.TokenTests { c = it.next } val ref = rfb.toString() - rfb.setLength(0) + rfb.clear() unescape(ref,sb) match { case null => - if (sb.length > 0) { // flush buffer + if (sb.length > 0) { // flush buffer nb += Text(sb.toString()) - sb.setLength(0) + sb.clear() } - nb += EntityRef(sb.toString()) // add entityref + nb += EntityRef(ref) // add entityref case _ => } } |