From 2408bec41a56378fcf942a68a1ab290464c001d7 Mon Sep 17 00:00:00 2001 From: Abhishek Koneru Date: Wed, 23 May 2012 13:46:25 -0400 Subject: Patch for fixes for Review Comments --- base/silent/src/com/netscape/pkisilent/common/Utilities.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'base/silent/src/com/netscape/pkisilent/common/Utilities.java') diff --git a/base/silent/src/com/netscape/pkisilent/common/Utilities.java b/base/silent/src/com/netscape/pkisilent/common/Utilities.java index 08c96e194..23fd2c54e 100644 --- a/base/silent/src/com/netscape/pkisilent/common/Utilities.java +++ b/base/silent/src/com/netscape/pkisilent/common/Utilities.java @@ -38,7 +38,6 @@ public class Utilities { } public String cleanupQuotes(String token) { - StringBuffer buf = new StringBuffer(); int length = token.length(); int curIndex = 0; @@ -141,7 +140,7 @@ public class Utilities { for (int i = 0; i < s.length(); i++) { if ((s.charAt(i) == '\\') && (s.charAt(i + 1) == 'n')) { - val.append(System.getProperty("line.separator")); + val.append("\n"); i++; continue; } else if ((s.charAt(i) == '\\') && (s.charAt(i + 1) == 'r')) { @@ -327,7 +326,7 @@ public class Utilities { RDN[] rdns = dname.getNames(); for (int i = rdns.length - 1; i >= 0; i--) { - pp.append(rdns[i] + System.getProperty("line.separator")); + pp.append(rdns[i] + "\n"); } cr.subject = pp.toString(); -- cgit