Open Joelei opened 4 weeks ago
Here is the input sample:
,A,B #,"Comment of A have multi lines",Comment of B ,"Data of A have multi lines",Data of B
config is:
{ quoteChar: '"', escapeChar: '"', header: true, comments: '#', skipEmptyLines: true, }
I expect to read correctly a line of data:
[ {"": '', A: 'Data of A have\nmulti lines', B: 'Data of B'} ]
But it throw "FieldMismatch" error, and the parsed data is:
[ {"": 'multi lines"', A: 'Comment of B'}, {"": '', A: 'Data of A have\nmulti lines', B: ' Data of B'} ]
If change the sample to this:
,A,B #,Comment of A,Comment of B ,"Data of A have multi lines",Data of B
This sample can be parsed correctly.
Does that mean parser doesn't support newline in comment lines?
If not, how can I get the result I want?
Relative disscussion:
Here is the input sample:
config is:
I expect to read correctly a line of data:
But it throw "FieldMismatch" error, and the parsed data is:
If change the sample to this:
This sample can be parsed correctly.
Does that mean parser doesn't support newline in comment lines?
If not, how can I get the result I want?