From a395a34a769d3c7e6616129f4832b7014dbbfe98 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Wed, 29 Jun 2022 14:47:32 +0700 Subject: Cleanup NewLine handling --- crypto/src/x509/X509CrlEntry.cs | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'crypto/src/x509/X509CrlEntry.cs') diff --git a/crypto/src/x509/X509CrlEntry.cs b/crypto/src/x509/X509CrlEntry.cs index 30e0da2db..87fc2e37a 100644 --- a/crypto/src/x509/X509CrlEntry.cs +++ b/crypto/src/x509/X509CrlEntry.cs @@ -165,11 +165,10 @@ namespace Org.BouncyCastle.X509 public override string ToString() { StringBuilder buf = new StringBuilder(); - string nl = Platform.NewLine; - buf.Append(" userCertificate: ").Append(this.SerialNumber).Append(nl); - buf.Append(" revocationDate: ").Append(this.RevocationDate).Append(nl); - buf.Append(" certificateIssuer: ").Append(this.GetCertificateIssuer()).Append(nl); + buf.Append(" userCertificate: ").Append(this.SerialNumber).AppendLine(); + buf.Append(" revocationDate: ").Append(this.RevocationDate).AppendLine(); + buf.Append(" certificateIssuer: ").Append(this.GetCertificateIssuer()).AppendLine(); X509Extensions extensions = c.Extensions; @@ -178,7 +177,7 @@ namespace Org.BouncyCastle.X509 var e = extensions.ExtensionOids.GetEnumerator(); if (e.MoveNext()) { - buf.Append(" crlEntryExtensions:").Append(nl); + buf.Append(" crlEntryExtensions:").AppendLine(); do { @@ -208,17 +207,17 @@ namespace Org.BouncyCastle.X509 buf.Append(oid.Id); buf.Append(" value = ").Append(Asn1Dump.DumpAsString(obj)); } - buf.Append(nl); + buf.AppendLine(); } catch (Exception) { buf.Append(oid.Id); - buf.Append(" value = ").Append("*****").Append(nl); + buf.Append(" value = ").Append("*****").AppendLine(); } } else { - buf.Append(nl); + buf.AppendLine(); } } while (e.MoveNext()); -- cgit 1.4.1