summaryrefslogtreecommitdiff
path: root/src/library
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2009-05-01 22:37:41 +0000
committerPaul Phillips <paulp@improving.org>2009-05-01 22:37:41 +0000
commit4603e36f932a18eb17a41aecc6b9e74c7655ff0f (patch)
treef706118cf3e68fcb491ec97eae81e9abcb938b6c /src/library
parent1165c27985e56d102fab5e8e26744b27dd9a3b89 (diff)
downloadscala-4603e36f932a18eb17a41aecc6b9e74c7655ff0f.tar.gz
scala-4603e36f932a18eb17a41aecc6b9e74c7655ff0f.tar.bz2
scala-4603e36f932a18eb17a41aecc6b9e74c7655ff0f.zip
Fix for #402.
Diffstat (limited to 'src/library')
-rw-r--r--src/library/scala/xml/PrefixedAttribute.scala2
-rw-r--r--src/library/scala/xml/UnprefixedAttribute.scala2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/library/scala/xml/PrefixedAttribute.scala b/src/library/scala/xml/PrefixedAttribute.scala
index 13ed201634..7922999dfd 100644
--- a/src/library/scala/xml/PrefixedAttribute.scala
+++ b/src/library/scala/xml/PrefixedAttribute.scala
@@ -81,7 +81,7 @@ extends Attribute
sb.append(key)
sb.append('=')
val sb2 = new StringBuilder()
- for (c <- value) Utility.toXML(c, TopScope, sb2, true)
+ Utility.sequenceToXML(value, TopScope, sb2, true)
Utility.appendQuoted(sb2.toString(), sb)
}
diff --git a/src/library/scala/xml/UnprefixedAttribute.scala b/src/library/scala/xml/UnprefixedAttribute.scala
index 59d43d6856..f82b5698dd 100644
--- a/src/library/scala/xml/UnprefixedAttribute.scala
+++ b/src/library/scala/xml/UnprefixedAttribute.scala
@@ -78,7 +78,7 @@ extends Attribute
sb.append(key)
sb.append('=')
val sb2 = new StringBuilder()
- for (c <- value) Utility.toXML(c, TopScope, sb2, true)
+ Utility.sequenceToXML(value, TopScope, sb2, true)
Utility.appendQuoted(sb2.toString(), sb)
}