forked from sheetjs/sheetjs
		
	stream.to_json end (fixes #1779)
This commit is contained in:
		
							parent
							
								
									ba3280ee8a
								
							
						
					
					
						commit
						467020fc69
					
				| @ -102,16 +102,16 @@ if(has_buf && typeof require != 'undefined') (function() { | ||||
| 		} | ||||
| 		R = r.s.r + offset; | ||||
| 		stream._read = function() { | ||||
| 			if(R > r.e.r) return stream.push(null); | ||||
| 			while(R <= r.e.r) { | ||||
| 				//if ((rowinfo[R-1]||{}).hidden) continue;
 | ||||
| 				var row = make_json_row(sheet, r, R, cols, header, hdr, dense, o); | ||||
| 				++R; | ||||
| 				if((row.isempty === false) || (header === 1 ? o.blankrows !== false : !!o.blankrows)) { | ||||
| 					stream.push(row.row); | ||||
| 					break; | ||||
| 					return; | ||||
| 				} | ||||
| 			} | ||||
| 			return stream.push(null); | ||||
| 		}; | ||||
| 		return stream; | ||||
| 	}; | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user