diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-06-29 14:47:32 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-06-29 14:47:32 +0700 |
commit | a395a34a769d3c7e6616129f4832b7014dbbfe98 (patch) | |
tree | 76a4749c2f548afff826c6758de3c8ce0b6fd646 /crypto/src/asn1/x509/CRLDistPoint.cs | |
parent | Generics migration complete (diff) | |
download | BouncyCastle.NET-ed25519-a395a34a769d3c7e6616129f4832b7014dbbfe98.tar.xz |
Cleanup NewLine handling
Diffstat (limited to 'crypto/src/asn1/x509/CRLDistPoint.cs')
-rw-r--r-- | crypto/src/asn1/x509/CRLDistPoint.cs | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/crypto/src/asn1/x509/CRLDistPoint.cs b/crypto/src/asn1/x509/CRLDistPoint.cs index 446bb19db..518bf3f00 100644 --- a/crypto/src/asn1/x509/CRLDistPoint.cs +++ b/crypto/src/asn1/x509/CRLDistPoint.cs @@ -72,16 +72,12 @@ namespace Org.BouncyCastle.Asn1.X509 public override string ToString() { StringBuilder buf = new StringBuilder(); - string sep = Platform.NewLine; - - buf.Append("CRLDistPoint:"); - buf.Append(sep); - DistributionPoint[] dp = GetDistributionPoints(); - for (int i = 0; i != dp.Length; i++) + buf.AppendLine("CRLDistPoint:"); + foreach (DistributionPoint dp in GetDistributionPoints()) { - buf.Append(" "); - buf.Append(dp[i]); - buf.Append(sep); + buf.Append(" ") + .Append(dp) + .AppendLine(); } return buf.ToString(); } |