forked from sheetjs/sheetjs
fix #2752 sheet_to_csv skips first blank line with blankrows: true option
sheet_to_csv skips first blank line with blankrows: true option
This commit is contained in:
parent
0de9479053
commit
bd26e174f2
@ -173,7 +173,11 @@ function sheet_add_aoa(_ws/*:?Worksheet*/, data/*:AOA*/, opts/*:?any*/)/*:Worksh
|
||||
}
|
||||
}
|
||||
}
|
||||
if(range.s.c < 10000000) ws['!ref'] = encode_range(range);
|
||||
if (range.s.c < 10000000) {
|
||||
if (range.s.c > _C) range.s.c = _C;
|
||||
if (range.s.r > _R) range.s.r = _R;
|
||||
ws['!ref'] = encode_range(range);
|
||||
}
|
||||
return ws;
|
||||
}
|
||||
function aoa_to_sheet(data/*:AOA*/, opts/*:?any*/)/*:Worksheet*/ { return sheet_add_aoa(null, data, opts); }
|
||||
|
Loading…
Reference in New Issue
Block a user