Repository: commons-csv Updated Branches: refs/heads/master 09cf3739d -> 9ae4b56c2
[CSV-203] withNullString value is printed without quotes when QuoteMode.ALL is specified; add QuoteMode.ALL_NON_NULL. PR #17. Project: http://git-wip-us.apache.org/repos/asf/commons-csv/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-csv/commit/9ae4b56c Tree: http://git-wip-us.apache.org/repos/asf/commons-csv/tree/9ae4b56c Diff: http://git-wip-us.apache.org/repos/asf/commons-csv/diff/9ae4b56c Branch: refs/heads/master Commit: 9ae4b56c2af4ee65fa935d99b298c98b7cc4bc63 Parents: 09cf373 Author: Gary Gregory <ggreg...@apache.org> Authored: Mon Mar 27 12:16:34 2017 -0700 Committer: Gary Gregory <ggreg...@apache.org> Committed: Mon Mar 27 12:16:34 2017 -0700 ---------------------------------------------------------------------- src/main/java/org/apache/commons/csv/CSVFormat.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-csv/blob/9ae4b56c/src/main/java/org/apache/commons/csv/CSVFormat.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/csv/CSVFormat.java b/src/main/java/org/apache/commons/csv/CSVFormat.java index a0382a3..259ea28 100644 --- a/src/main/java/org/apache/commons/csv/CSVFormat.java +++ b/src/main/java/org/apache/commons/csv/CSVFormat.java @@ -362,7 +362,8 @@ public final class CSVFormat implements Serializable { .withIgnoreEmptyLines(false) .withQuote(null) .withRecordSeparator(LF) - .withNullString("\\N"); + .withNullString("\\N") + .withQuoteMode(QuoteMode.ALL_NON_NULL); // @formatter:off /**