Closed manxingxing closed 3 years ago
related to PR #249
when sheet is empty, last_row_index return 0. #<< actually adds data to the second row. leaving the first row blank.
last_row_index
#<<
to reproduce:
require 'spreadsheet' wb = Spreadsheet::Workbook.new sheet = wb.create_worksheet sheet << ['A', 'B', 'C', 'D'] sheet << [1,2,3,4] wb.write(File.expand_path('spreadsheet.xls', Dir.pwd))
Thank you, version 1.2.8 is out.
1.2.8
related to PR #249
when sheet is empty,
last_row_index
return 0.#<<
actually adds data to the second row. leaving the first row blank.to reproduce: