Skip to content

Commit 9ae4b56

Browse files
committed
[CSV-203]
withNullString value is printed without quotes when QuoteMode.ALL is specified; add QuoteMode.ALL_NON_NULL. PR apache#17.
1 parent 09cf373 commit 9ae4b56

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/main/java/org/apache/commons/csv/CSVFormat.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,8 @@ public CSVFormat getFormat() {
362362
.withIgnoreEmptyLines(false)
363363
.withQuote(null)
364364
.withRecordSeparator(LF)
365-
.withNullString("\\N");
365+
.withNullString("\\N")
366+
.withQuoteMode(QuoteMode.ALL_NON_NULL);
366367
// @formatter:off
367368

368369
/**

0 commit comments

Comments
 (0)