Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.0
-
None
Description
Following code:
CSVFormat format = CSVFormat.DEFAULT .withRecordSeparator('\n') .withQuote('"') .withEscape('\\'); CSVPrinter printer = new CSVPrinter(System.out, format); List<String> l = new LinkedList<String>(); l.add("\""); l.add("\n"); l.add("\\"); printer.printRecord(l);
produces
""""," ","\"
instead of
"\"","\n","\\"