From 65c5efe43b68700bad94076d4cd421160203c5de Mon Sep 17 00:00:00 2001
From: Jeff Ames
Date: Fri, 16 May 2008 01:22:11 +0000
Subject: Formatting cleanup.
---
OpenSim/Framework/Util.cs | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
(limited to 'OpenSim/Framework/Util.cs')
diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs
index 5577140..8e5b02d 100644
--- a/OpenSim/Framework/Util.cs
+++ b/OpenSim/Framework/Util.cs
@@ -165,10 +165,10 @@ namespace OpenSim.Framework
// (but those probably wont work anyway)
return file;
}
-
+
///
/// Debug utility function to convert unbroken strings of XML into something human readable for occasional debugging purposes.
- ///
+ ///
/// Please don't delete me even if I appear currently unused!
///
///
@@ -177,22 +177,22 @@ namespace OpenSim.Framework
{
XmlDocument xd = new XmlDocument();
xd.LoadXml(rawXml);
-
+
StringBuilder sb = new StringBuilder();
- StringWriter sw = new StringWriter(sb);
-
+ StringWriter sw = new StringWriter(sb);
+
XmlTextWriter xtw = new XmlTextWriter(sw);
xtw.Formatting = Formatting.Indented;
-
+
try
{
xd.WriteTo(xtw);
}
finally
{
- xtw.Close();
+ xtw.Close();
}
-
+
return sb.ToString();
}
@@ -284,11 +284,11 @@ namespace OpenSim.Framework
/// Convert a variable length field (byte array) to a string, with a
/// field name prepended to each line of the output
///
- /// If the byte array has unprintable characters in it, a
+ /// If the byte array has unprintable characters in it, a
/// hex dump will be put in the string instead
/// The byte array to convert to a string
/// A field name to prepend to each line of output
- /// An ASCII string or a string containing a hex dump, minus
+ /// An ASCII string or a string containing a hex dump, minus
/// the null terminator
public static string FieldToString(byte[] bytes, string fieldName)
{
--
cgit v1.1