Browse Source

Trim empty lines from whitespace

Fixes https://github.com/mholt/PapaParse/issues/285
pull/286/head
Jeroen Ooms 9 years ago
parent
commit
ee345b748d
  1. 2
      papaparse.js

2
papaparse.js

@ -816,7 +816,7 @@ @@ -816,7 +816,7 @@
if (_config.skipEmptyLines)
{
for (var i = 0; i < _results.data.length; i++)
if (_results.data[i].length === 1 && _results.data[i][0] === '')
if (_results.data[i].length === 1 && _results.data[i][0].trim() === '')
_results.data.splice(i--, 1);
}

Loading…
Cancel
Save