mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
Massive tab and trailing space cleanup
This commit is contained in:
@@ -42,31 +42,31 @@ namespace OpenSim.Framework.Serialization.External
|
||||
{
|
||||
public const int MAJOR_VERSION = 0;
|
||||
public const int MINOR_VERSION = 1;
|
||||
|
||||
|
||||
public static string Serialize(UUID userID, string firstName, string lastName)
|
||||
{
|
||||
StringWriter sw = new StringWriter();
|
||||
XmlTextWriter xtw = new XmlTextWriter(sw);
|
||||
xtw.Formatting = Formatting.Indented;
|
||||
xtw.WriteStartDocument();
|
||||
|
||||
|
||||
xtw.WriteStartElement("user_profile");
|
||||
xtw.WriteAttributeString("major_version", MAJOR_VERSION.ToString());
|
||||
xtw.WriteAttributeString("minor_version", MINOR_VERSION.ToString());
|
||||
|
||||
|
||||
xtw.WriteElementString("name", firstName + " " + lastName);
|
||||
xtw.WriteElementString("id", userID.ToString());
|
||||
xtw.WriteElementString("about", "");
|
||||
|
||||
|
||||
// Not sure if we're storing this yet, need to take a look
|
||||
// xtw.WriteElementString("Url", profile.Url);
|
||||
// or, indeed, interests
|
||||
|
||||
xtw.WriteEndElement();
|
||||
|
||||
|
||||
xtw.Close();
|
||||
sw.Close();
|
||||
|
||||
|
||||
return sw.ToString();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user