summary refs log tree commit diff
path: root/crypto/src/pkix/TrustAnchor.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/pkix/TrustAnchor.cs')
-rw-r--r--crypto/src/pkix/TrustAnchor.cs12
1 files changed, 5 insertions, 7 deletions
diff --git a/crypto/src/pkix/TrustAnchor.cs b/crypto/src/pkix/TrustAnchor.cs
index 22078baf2..c8937e8c8 100644
--- a/crypto/src/pkix/TrustAnchor.cs
+++ b/crypto/src/pkix/TrustAnchor.cs
@@ -236,22 +236,20 @@ namespace Org.BouncyCastle.Pkix
 		public override string ToString()
 		{
 			// TODO Some of the sub-objects might not implement ToString() properly
-			string nl = Platform.NewLine;
 			StringBuilder sb = new StringBuilder();
-			sb.Append("[");
-			sb.Append(nl);
+			sb.AppendLine("[");
 			if (this.pubKey != null)
 			{
-				sb.Append("  Trusted CA Public Key: ").Append(this.pubKey).Append(nl);
-				sb.Append("  Trusted CA Issuer Name: ").Append(this.caName).Append(nl);
+				sb.Append("  Trusted CA Public Key: ").Append(this.pubKey).AppendLine();
+				sb.Append("  Trusted CA Issuer Name: ").Append(this.caName).AppendLine();
 			}
 			else
 			{
-				sb.Append("  Trusted CA cert: ").Append(this.TrustedCert).Append(nl);
+				sb.Append("  Trusted CA cert: ").Append(this.TrustedCert).AppendLine();
 			}
 			if (nc != null)
 			{
-				sb.Append("  Name Constraints: ").Append(nc).Append(nl);
+				sb.Append("  Name Constraints: ").Append(nc).AppendLine();
 			}
 			return sb.ToString();
 		}