forked from sheetjs/sheetjs
to_csv skipHidden corner case (fixes #1508)
This commit is contained in:
parent
9a6d8a1d3d
commit
4109caeadd
@ -18,7 +18,6 @@ if(has_buf && typeof require != 'undefined') (function() {
|
|||||||
var BOM = false;
|
var BOM = false;
|
||||||
stream._read = function() {
|
stream._read = function() {
|
||||||
if(!BOM) { BOM = true; return stream.push("\uFEFF"); }
|
if(!BOM) { BOM = true; return stream.push("\uFEFF"); }
|
||||||
if(R > r.e.r) return stream.push(null);
|
|
||||||
while(R <= r.e.r) {
|
while(R <= r.e.r) {
|
||||||
++R;
|
++R;
|
||||||
if ((rowinfo[R-1]||{}).hidden) continue;
|
if ((rowinfo[R-1]||{}).hidden) continue;
|
||||||
@ -29,6 +28,7 @@ if(has_buf && typeof require != 'undefined') (function() {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if(R > r.e.r) return stream.push(null);
|
||||||
};
|
};
|
||||||
return stream;
|
return stream;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user