Add more info to toString() method; use space separator for clarity

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1305669 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2012-03-26 23:32:18 +00:00
parent 50a89da39f
commit 8e9fb0e989
1 changed files with 9 additions and 3 deletions

View File

@ -419,17 +419,23 @@ public class CSVFormat implements Serializable {
StringBuilder sb = new StringBuilder();
sb.append("Delimiter=<").append(delimiter).append('>');
if (isEscaping()) {
sb.append(',');
sb.append(' ');
sb.append("Escape=<").append(escape).append('>');
}
if (isEncapsulating()) {
sb.append(',');
sb.append(' ');
sb.append("Encapsulator=<").append(encapsulator).append('>');
}
if (isCommentingEnabled()) {
sb.append(',');
sb.append(' ');
sb.append("CommentStart=<").append(commentStart).append('>');
}
if (isEmptyLinesIgnored()) {
sb.append(" EmptyLines:ignored");
}
if (isSurroundingSpacesIgnored()) {
sb.append(" SurroundingSpaces:ignored");
}
return sb.toString();
}