From f423f552e01310ae0338d1c4e413c1dc75ea10d5 Mon Sep 17 00:00:00 2001 From: xue <> Date: Wed, 23 Jan 2008 01:49:02 +0000 Subject: fixed an encoding issue in TXmlDocument. --- framework/Xml/TXmlDocument.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/framework/Xml/TXmlDocument.php b/framework/Xml/TXmlDocument.php index 0b44214e..d4561734 100644 --- a/framework/Xml/TXmlDocument.php +++ b/framework/Xml/TXmlDocument.php @@ -222,7 +222,7 @@ class TXmlElement extends TComponent else return $prefix."<{$this->_tagName}$attr />"; } - + /** * Magic-method override. Called whenever this element is used as a string. * @@ -248,9 +248,9 @@ class TXmlElement extends TComponent '<'=>'<', '&'=>'&', '"'=>'"', - "\r"=>' ', + "\r"=>' ', "\t"=>' ', - "\n"=>' ')); + "\n"=>' ')); } } @@ -433,7 +433,7 @@ class TXmlDocument extends TXmlElement $encoding=empty($this->_encoding)?'':' encoding="'.$this->_encoding.'"'; return "\n".$this->toString(0); } - + /** * Magic-method override. Called whenever this document is used as a string. * -- cgit v1.2.3