jijo-paulose / jquery-csv

Automatically exported from code.google.com/p/jquery-csv
MIT License
0 stars 0 forks source link

colNum not reset when onParseValue callback called #37

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Parse a CSV file with an onParseValue callback function.
2. When the callback is executed for the second and subsequent data row, the 
column number is incorrect. It keeps incrementing instead of being reset to 1 
on data rows after the first.

Please see attached test case.

What is the expected output? What do you see instead?
I expect to see the column number reset to 1 on each row parsed. For the 
specific example, I would expect to see the following output.

[row=1, col=1] col1
[row=1, col=2] col2
[row=2, col=1] 101
[row=2, col=2] 102
[row=3, col=1] 103
[row=3, col=2] 104 

The actual output contains incrementing column numbers for the second and 
subsequent data rows. The column numbers are not reset to 1. I get the 
following output for the test case.

[row=1, col=1] col1
[row=1, col=2] col2
[row=2, col=1] 101
[row=2, col=2] 102
[row=3, col=3] 103
[row=3, col=4] 104 

What version of the product are you using? On what operating system?
Tested on jquery-csv v0.71 and Chrome 32.0.1700.76.

Please provide any additional information below.

Original issue reported on code.google.com by g...@gregtan.com on 21 Jan 2014 at 7:03

Attachments: