diff --git a/rows.go b/rows.go index 7610836f17..bf22d0cf03 100644 --- a/rows.go +++ b/rows.go @@ -70,8 +70,11 @@ func (f *File) GetRows(sheet string, opts ...Options) ([][]string, error) { if err != nil { break } - results = append(results, row) if len(row) > 0 { + if emptyRows := cur - maxVal - 1; emptyRows > 0 { + results = append(results, make([][]string, emptyRows)...) + } + results = append(results, row) maxVal = cur } }