diff options
author | Melanie Thielker | 2017-01-05 19:07:37 +0000 |
---|---|---|
committer | Melanie Thielker | 2017-01-05 19:07:37 +0000 |
commit | b16abc8166c29585cb76cc55c3bdd76e5833cb4f (patch) | |
tree | 6a34f465a74b7a3a6dc00a3d7aa8dcc25ac3e3a5 /OpenSim/Framework/Serialization/External/UserProfileSerializer.cs | |
parent | Make it possible to disable the bakes module in the way it is described in co... (diff) | |
download | opensim-SC-b16abc8166c29585cb76cc55c3bdd76e5833cb4f.zip opensim-SC-b16abc8166c29585cb76cc55c3bdd76e5833cb4f.tar.gz opensim-SC-b16abc8166c29585cb76cc55c3bdd76e5833cb4f.tar.bz2 opensim-SC-b16abc8166c29585cb76cc55c3bdd76e5833cb4f.tar.xz |
Massive tab and trailing space cleanup
Diffstat (limited to 'OpenSim/Framework/Serialization/External/UserProfileSerializer.cs')
-rw-r--r-- | OpenSim/Framework/Serialization/External/UserProfileSerializer.cs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/OpenSim/Framework/Serialization/External/UserProfileSerializer.cs b/OpenSim/Framework/Serialization/External/UserProfileSerializer.cs index c685a15..34eaa99 100644 --- a/OpenSim/Framework/Serialization/External/UserProfileSerializer.cs +++ b/OpenSim/Framework/Serialization/External/UserProfileSerializer.cs | |||
@@ -42,31 +42,31 @@ namespace OpenSim.Framework.Serialization.External | |||
42 | { | 42 | { |
43 | public const int MAJOR_VERSION = 0; | 43 | public const int MAJOR_VERSION = 0; |
44 | public const int MINOR_VERSION = 1; | 44 | public const int MINOR_VERSION = 1; |
45 | 45 | ||
46 | public static string Serialize(UUID userID, string firstName, string lastName) | 46 | public static string Serialize(UUID userID, string firstName, string lastName) |
47 | { | 47 | { |
48 | StringWriter sw = new StringWriter(); | 48 | StringWriter sw = new StringWriter(); |
49 | XmlTextWriter xtw = new XmlTextWriter(sw); | 49 | XmlTextWriter xtw = new XmlTextWriter(sw); |
50 | xtw.Formatting = Formatting.Indented; | 50 | xtw.Formatting = Formatting.Indented; |
51 | xtw.WriteStartDocument(); | 51 | xtw.WriteStartDocument(); |
52 | 52 | ||
53 | xtw.WriteStartElement("user_profile"); | 53 | xtw.WriteStartElement("user_profile"); |
54 | xtw.WriteAttributeString("major_version", MAJOR_VERSION.ToString()); | 54 | xtw.WriteAttributeString("major_version", MAJOR_VERSION.ToString()); |
55 | xtw.WriteAttributeString("minor_version", MINOR_VERSION.ToString()); | 55 | xtw.WriteAttributeString("minor_version", MINOR_VERSION.ToString()); |
56 | 56 | ||
57 | xtw.WriteElementString("name", firstName + " " + lastName); | 57 | xtw.WriteElementString("name", firstName + " " + lastName); |
58 | xtw.WriteElementString("id", userID.ToString()); | 58 | xtw.WriteElementString("id", userID.ToString()); |
59 | xtw.WriteElementString("about", ""); | 59 | xtw.WriteElementString("about", ""); |
60 | 60 | ||
61 | // Not sure if we're storing this yet, need to take a look | 61 | // Not sure if we're storing this yet, need to take a look |
62 | // xtw.WriteElementString("Url", profile.Url); | 62 | // xtw.WriteElementString("Url", profile.Url); |
63 | // or, indeed, interests | 63 | // or, indeed, interests |
64 | 64 | ||
65 | xtw.WriteEndElement(); | 65 | xtw.WriteEndElement(); |
66 | 66 | ||
67 | xtw.Close(); | 67 | xtw.Close(); |
68 | sw.Close(); | 68 | sw.Close(); |
69 | 69 | ||
70 | return sw.ToString(); | 70 | return sw.ToString(); |
71 | } | 71 | } |
72 | } | 72 | } |