summaryrefslogtreecommitdiffstats
path: root/base/common/src/com/netscape/cmscore/cert/PrettyPrintFormat.java
diff options
context:
space:
mode:
authorAbhishek Koneru <akoneru@redhat.com>2012-05-23 13:46:25 -0400
committerAde Lee <alee@redhat.com>2012-05-24 23:09:24 -0400
commit2408bec41a56378fcf942a68a1ab290464c001d7 (patch)
treedb5b4ba123c2023c854882188851a42fd35348bf /base/common/src/com/netscape/cmscore/cert/PrettyPrintFormat.java
parentbe23c86db27b7f66ca16a10ae3ef3f043d1d4b27 (diff)
downloadpki-2408bec41a56378fcf942a68a1ab290464c001d7.tar.gz
pki-2408bec41a56378fcf942a68a1ab290464c001d7.tar.xz
pki-2408bec41a56378fcf942a68a1ab290464c001d7.zip
Patch for fixes for Review Comments
Diffstat (limited to 'base/common/src/com/netscape/cmscore/cert/PrettyPrintFormat.java')
-rw-r--r--base/common/src/com/netscape/cmscore/cert/PrettyPrintFormat.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/base/common/src/com/netscape/cmscore/cert/PrettyPrintFormat.java b/base/common/src/com/netscape/cmscore/cert/PrettyPrintFormat.java
index 7b7ce64f9..60bc8c8f6 100644
--- a/base/common/src/com/netscape/cmscore/cert/PrettyPrintFormat.java
+++ b/base/common/src/com/netscape/cmscore/cert/PrettyPrintFormat.java
@@ -107,7 +107,7 @@ public class PrettyPrintFormat implements IPrettyPrintFormat {
if (in == null) return "";
- StringBuffer sb = new StringBuffer();
+ StringBuffer sb = new StringBuffer(indent(indentSize));
int hexCount = 0;
char c[];
int j = 0;
@@ -120,7 +120,6 @@ public class PrettyPrintFormat implements IPrettyPrintFormat {
char sep = separator.charAt(0);
- sb.append(indent(indentSize));
for (int i = 0; i < in.length; i++) {
if (lineLen > 0 && hexCount == lineLen) {
c[j++] = '\n';