From 4603e36f932a18eb17a41aecc6b9e74c7655ff0f Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Fri, 1 May 2009 22:37:41 +0000 Subject: Fix for #402. --- src/library/scala/xml/PrefixedAttribute.scala | 2 +- src/library/scala/xml/UnprefixedAttribute.scala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/library') 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) } -- cgit v1.2.3