Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Sheldon <dave@mono-cvs.ximian.com>2004-01-25 14:13:07 +0300
committerDavid Sheldon <dave@mono-cvs.ximian.com>2004-01-25 14:13:07 +0300
commit50b364fbe2ae6e3c6d7cf113deb32659b4cc3f84 (patch)
tree8d9a7491c0311a328f8c26acd87a9195d3a1cc5f /mcs/class/corlib/System.Security/SecurityElement.cs
parent8a963d3b0a30d5e92497f3c876732990d8f6ee3c (diff)
2004-01-25 David Sheldon <dave-mono@earth.li>
* Test/System.Security.Policy/PublisherTest.cs, SiteTest.cs: Changed "\r\n" in strings to use Environment.NewLine. * System.Security/SecurityElement.cs: Changed indentation in ToString, it seems MS indent by 3 spaces, not 4. Also added NewLine to childless elements. svn path=/trunk/mcs/; revision=22473
Diffstat (limited to 'mcs/class/corlib/System.Security/SecurityElement.cs')
-rwxr-xr-xmcs/class/corlib/System.Security/SecurityElement.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/mcs/class/corlib/System.Security/SecurityElement.cs b/mcs/class/corlib/System.Security/SecurityElement.cs
index 482c1ff7e31..fe02308b70f 100755
--- a/mcs/class/corlib/System.Security/SecurityElement.cs
+++ b/mcs/class/corlib/System.Security/SecurityElement.cs
@@ -305,7 +305,7 @@ namespace System.Security
private void ToXml(ref StringBuilder s, int level)
{
- s.Append (' ', level << 2);
+ s.Append (' ', level * 3 );
s.Append ("<");
s.Append (tag);
@@ -322,7 +322,7 @@ namespace System.Security
if ((text == null || text == String.Empty) &&
(children == null || children.Count == 0))
- s.Append ("/>");
+ s.Append ("/>").Append (Environment.NewLine);
else {
s.Append (">").Append (text);
if (children != null) {