Closed osc2nuke closed 5 years ago
Perhaps not desirable: https://github.com/parsecsv/parsecsv-for-php/blob/b746ea1de0f5a73e9dae1f184b8a975759655f1c/src/Csv.php#L1173
right below: https://github.com/parsecsv/parsecsv-for-php/blob/b746ea1de0f5a73e9dae1f184b8a975759655f1c/src/Csv.php#L1175
Add:
$data = preg_replace("![\n\r]+\s*[\n\r]+!", "\r\n", $data);
Not sure if it is already asked or supported. I have a supplier that delivers csv with a blank line between each row. Is there a way to skip these? As it count's them in as an entry.