From 445cb840b937ee242e039b92ac6389d0e92f5739 Mon Sep 17 00:00:00 2001 From: Burak Emir Date: Wed, 5 Mar 2008 20:07:49 +0000 Subject: fixed double escaping issue --- src/library/scala/xml/PrefixedAttribute.scala | 4 ++-- src/library/scala/xml/UnprefixedAttribute.scala | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/library/scala/xml/PrefixedAttribute.scala b/src/library/scala/xml/PrefixedAttribute.scala index 5b98e2ff36..0ee62b9cd7 100644 --- a/src/library/scala/xml/PrefixedAttribute.scala +++ b/src/library/scala/xml/PrefixedAttribute.scala @@ -26,9 +26,9 @@ class PrefixedAttribute(val pre: String, if(value eq null) throw new UnsupportedOperationException("value is null") - /** same as this(key, Text(value), next) */ + /** same as this(key, Utility.parseAttributeValue(value), next) */ def this(pre: String, key: String, value: String, next: MetaData) = - this(pre, key, Text(value), next) + this(pre, key, Utility.parseAttributeValue(value), next) /* // the problem here is the fact that we cannot remove the proper attribute from diff --git a/src/library/scala/xml/UnprefixedAttribute.scala b/src/library/scala/xml/UnprefixedAttribute.scala index be0f82129f..adaca90d97 100644 --- a/src/library/scala/xml/UnprefixedAttribute.scala +++ b/src/library/scala/xml/UnprefixedAttribute.scala @@ -19,11 +19,11 @@ class UnprefixedAttribute(val key: String, val value: Seq[Node], next1: MetaData val next = if (value ne null) next1 else next1.remove(key) - /** same as this(key, Text(value), next) */ + /** same as this(key, Utility.parseAttributeValue(value), next) */ def this(key: String, value: String, next: MetaData) = - this(key, if (value ne null) Text(value) else {val z:NodeSeq=null;z}, next) + this(key, if (value ne null) Utility.parseAttributeValue(value) else {val z:NodeSeq=null;z}, next) - /** same as this(key, Text(value.get), next), or no attribute if value is None */ + /** same as this(key, value.get, next), or no attribute if value is None */ def this(key: String, value: Option[Seq[Node]], next: MetaData) = this(key, if (!value.isEmpty) value.get else {val z:NodeSeq=null;z}, next) -- cgit v1.2.3