Open GoogleCodeExporter opened 8 years ago
Single-column CSV files is something I recently noticed has some issues, I'll
be providing a fix and official
update as soon as I can :)
Original comment by zynode
on 10 Jul 2008 at 6:38
Hi guys,
I suppose the proposed fix doesn't solve the issue completely, when the final 2
chars of a single column CSV line are "\r\n".
This combination is not caught as a line-end, which causes the "\n" to be seen
as a "normal" character, which causes the "\n" to be added to the
delimiter-character possibilities array (the final "else").
I've added another possibility in the second "if" like follows:
elseif ( ($ch === $this->delimiter || ( $ch === "\n" && $pch !== "\r" ) || $ch
=== "\r" || $ch === "\n" ) && !$enclosed ) {
Original comment by kim.ken...@gmail.com
on 4 Apr 2012 at 1:08
Original issue reported on code.google.com by
jpp...@gmail.com
on 10 Jul 2008 at 6:33Attachments: