Skip to content

Commit

Permalink
readrows fix for #238
Browse files Browse the repository at this point in the history
  • Loading branch information
jobchong committed Mar 25, 2017
1 parent a170990 commit a72feb2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions readrows.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,14 @@ function readRows(sheet, entitiesByName, includeDepth) {
var rows = sheet.getDataRange();
var numRows = rows.getNumRows();
var values = rows.getValues();
for (var i = 0; i < values.length; i++) {
for (var j = 0 ; j < i.length; j++) {
if (/^\s+$/.test(values[i][j])) {
rrLog(["uh oh, empty space at row %s cell %s, deleting", i, j], 6);
values[i].splice(j, 1) // #238
}
}
}
var formulas = rows.getFormulas();
var formats = rows.getNumberFormats();
var display = rows.getDisplayValues();
Expand Down

0 comments on commit a72feb2

Please sign in to comment.