File tree Expand file tree Collapse file tree
java/org/apache/commons/csv Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -96,6 +96,8 @@ public void testCSVFile() throws Exception {
9696 fmt = fmt .withEmptyLinesIgnored (Boolean .parseBoolean (option_parts [1 ]));
9797 } else if ("IgnoreSpaces" .equalsIgnoreCase (option_parts [0 ])) {
9898 fmt = fmt .withSurroundingSpacesIgnored (Boolean .parseBoolean (option_parts [1 ]));
99+ } else if ("CommentStart" .equalsIgnoreCase (option_parts [0 ])) {
100+ fmt = fmt .withCommentStart (option_parts [1 ].charAt (0 ));
99101 } else {
100102 fail (testName +" unexpected option: " +option );
101103 }
Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ The first line of this file consists of several space-separated fields:
1111- (optional) settings to be applied to the default parsing format, which is delim=',' encap='"'
1212The settings have the form (see test source file for full details):
1313IgnoreEmpty=true|false
14+ IgnoreSpaces=true|false
15+ CommentStart=char
1416
1517The second line is the expected output from invoking CSVFormat#toString() on the parsing format
1618
You can’t perform that action at this time.
0 commit comments