result contains empty line even keepEmptyRows or skipEmptyLines defined
See original GitHub issuePapa.parse(file, {
delimiter: ",",
header: true,
keepEmptyRows:false,
skipEmptyLines: true,
complete: function(results) {
console.log(results.data);
$rootScope.$apply(function(){
$rootScope.rowCollection = results.data;
$rootScope.showTable = true;
});
}
});
I have changed configs true/false, and also removing but nothing seems to me working
may be I’m wrong
Issue Analytics
- State:
- Created 9 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Is PapaParse adding an empty string to the end of its data array?
You need to use skipEmptyLines: true in parse config. For example: Papa.parse(this.csvData, {skipEmptyLines: true,}).
Read more >Data Input - R
Data Input. Description. Reads a file in table format and creates a data frame from it, with cases corresponding to lines and variables...
Read more >Skip empty lines on repeat in a text box - Objectif Lune
I've created a text box that has some static text and dbase field data. It iterates from line 2 to 0. Also it...
Read more >How to remove empty lines from beginning and end of file?
Try this,. To remove blank lines from the begin of a file: sed -i '/./,$!d' filename. To remove blank lines from the end...
Read more >[bufio.Scanner] skip empty lines - Google Groups
a nil token but a positive advance returned by the split function mean "ignore/skip this data" ? diff --git a/src/bufio/scan.go b/src/bufio/scan ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I would vote for incorporating some allFieldsEmpty logic. I think most people would probably expect that behavior from a skipEmptyLines flag.
@mholt can you remove
from http://papaparse.com/docs#config section