mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 10:15:33 +08:00
Massive tab and trailing space cleanup
This commit is contained in:
@@ -45,7 +45,7 @@ namespace OpenSim.Region.CoreModules.World.Serialiser
|
||||
[Extension(Path = "/OpenSim/RegionModules", NodeName = "RegionModule", Id = "SerialiserModule")]
|
||||
public class SerialiserModule : ISharedRegionModule, IRegionSerialiserModule
|
||||
{
|
||||
private static readonly ILog m_log =
|
||||
private static readonly ILog m_log =
|
||||
LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||
|
||||
// private Commander m_commander = new Commander("export");
|
||||
@@ -55,15 +55,15 @@ namespace OpenSim.Region.CoreModules.World.Serialiser
|
||||
|
||||
#region ISharedRegionModule Members
|
||||
|
||||
public Type ReplaceableInterface
|
||||
{
|
||||
public Type ReplaceableInterface
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
public void Initialise(IConfigSource source)
|
||||
{
|
||||
IConfig config = source.Configs["Serialiser"];
|
||||
if (config != null)
|
||||
if (config != null)
|
||||
{
|
||||
m_savedir = config.GetString("save_dir", m_savedir);
|
||||
}
|
||||
@@ -150,7 +150,7 @@ namespace OpenSim.Region.CoreModules.World.Serialiser
|
||||
{
|
||||
SceneXmlLoader.SavePrimsToXml2(scene, stream, min, max);
|
||||
}
|
||||
|
||||
|
||||
public void SaveNamedPrimsToXml2(Scene scene, string primName, string fileName)
|
||||
{
|
||||
SceneXmlLoader.SaveNamedPrimsToXml2(scene, primName, fileName);
|
||||
|
||||
@@ -43,7 +43,7 @@ namespace OpenSim.Region.CoreModules.World.Serialiser.Tests
|
||||
[TestFixture]
|
||||
public class SerialiserTests : OpenSimTestCase
|
||||
{
|
||||
private const string ObjectRootPartStubXml =
|
||||
private const string ObjectRootPartStubXml =
|
||||
@"<SceneObjectGroup>
|
||||
<RootPart>
|
||||
<SceneObjectPart xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:xsd=""http://www.w3.org/2001/XMLSchema"">
|
||||
@@ -149,9 +149,9 @@ namespace OpenSim.Region.CoreModules.World.Serialiser.Tests
|
||||
<llsd>
|
||||
<map>
|
||||
<key>MyNamespace</key>
|
||||
<map>
|
||||
<map>
|
||||
<key>MyStore</key>
|
||||
<map>
|
||||
<map>
|
||||
<key>the answer</key>
|
||||
<integer>42</integer>
|
||||
</map>
|
||||
@@ -162,12 +162,12 @@ namespace OpenSim.Region.CoreModules.World.Serialiser.Tests
|
||||
</SceneObjectPart>
|
||||
</RootPart>";
|
||||
|
||||
private const string ObjectWithNoOtherPartsXml = ObjectRootPartStubXml +
|
||||
private const string ObjectWithNoOtherPartsXml = ObjectRootPartStubXml +
|
||||
@"
|
||||
<OtherParts />
|
||||
</SceneObjectGroup>";
|
||||
|
||||
private const string ObjectWithOtherPartsXml = ObjectRootPartStubXml +
|
||||
private const string ObjectWithOtherPartsXml = ObjectRootPartStubXml +
|
||||
@"
|
||||
<OtherParts>
|
||||
<Part>
|
||||
@@ -574,9 +574,9 @@ namespace OpenSim.Region.CoreModules.World.Serialiser.Tests
|
||||
<llsd>
|
||||
<map>
|
||||
<key>MyNamespace</key>
|
||||
<map>
|
||||
<map>
|
||||
<key>MyStore</key>
|
||||
<map>
|
||||
<map>
|
||||
<key>last words</key>
|
||||
<string>Rosebud</string>
|
||||
</map>
|
||||
@@ -636,7 +636,7 @@ namespace OpenSim.Region.CoreModules.World.Serialiser.Tests
|
||||
Assert.That(part.Name, Is.EqualTo("PrimMyRide"));
|
||||
OSDMap store = part.DynAttrs.GetStore("MyNamespace", "MyStore");
|
||||
Assert.AreEqual(42, store["the answer"].AsInteger());
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
SceneObjectPart part = parts[1];
|
||||
@@ -723,7 +723,7 @@ namespace OpenSim.Region.CoreModules.World.Serialiser.Tests
|
||||
xtr.ReadStartElement("SceneObjectGroup");
|
||||
xtr.ReadStartElement("RootPart");
|
||||
xtr.ReadStartElement("SceneObjectPart");
|
||||
|
||||
|
||||
UUID uuid = UUID.Zero;
|
||||
string name = null;
|
||||
UUID creatorId = UUID.Zero;
|
||||
@@ -733,7 +733,7 @@ namespace OpenSim.Region.CoreModules.World.Serialiser.Tests
|
||||
{
|
||||
if (xtr.NodeType != XmlNodeType.Element)
|
||||
continue;
|
||||
|
||||
|
||||
switch (xtr.Name)
|
||||
{
|
||||
case "UUID":
|
||||
@@ -833,7 +833,7 @@ namespace OpenSim.Region.CoreModules.World.Serialiser.Tests
|
||||
XmlTextReader xtr = new XmlTextReader(new StringReader(xml2));
|
||||
xtr.ReadStartElement("SceneObjectGroup");
|
||||
xtr.ReadStartElement("SceneObjectPart");
|
||||
|
||||
|
||||
UUID uuid = UUID.Zero;
|
||||
string name = null;
|
||||
UUID creatorId = UUID.Zero;
|
||||
@@ -843,7 +843,7 @@ namespace OpenSim.Region.CoreModules.World.Serialiser.Tests
|
||||
{
|
||||
if (xtr.NodeType != XmlNodeType.Element)
|
||||
continue;
|
||||
|
||||
|
||||
switch (xtr.Name)
|
||||
{
|
||||
case "UUID":
|
||||
|
||||
Reference in New Issue
Block a user