Compare commits

...

1 Commits

Author SHA1 Message Date
saitulasiram94
bd26e174f2 fix #2752 sheet_to_csv skips first blank line with blankrows: true option
sheet_to_csv skips first blank line with blankrows: true option
2022-08-26 22:10:19 +02:00

@ -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); }