lib/roo/roo_rails_helper.rb in roo-1.10.1 vs lib/roo/roo_rails_helper.rb in roo-1.10.2

- old
+ new

@@ -12,13 +12,13 @@ bgcolor = false end sheets.each { |sheet| @rspreadsheet.default_sheet = sheet - linenumber = @rspreadsheet.first_row(sheet) + linenumber = @rspreadsheet.first_row(sheet) if options[:first_row] - linenumber += (options[:first_row]-1) + linenumber += (options[:first_row]-1) end o << '<table border="0" cellspacing="1" cellpadding="1">' if options[:first_row] first_row = options[:first_row] end @@ -36,17 +36,17 @@ first_column = @rspreadsheet.first_column(sheet) unless first_column last_column = @rspreadsheet.last_column(sheet) unless last_column if coordinates o << " <tr>" o << " <td>&nbsp;</td>" - @rspreadsheet.first_column(sheet).upto(@rspreadsheet.last_column(sheet)) {|c| + @rspreadsheet.first_column(sheet).upto(@rspreadsheet.last_column(sheet)) {|c| if c < first_column or c > last_column next end o << " <td>" - o << " <b>#{GenericSpreadsheet.number_to_letter(c)}</b>" + o << " <b>#{Roo::GenericSpreadsheet.number_to_letter(c)}</b>" o << " </td>" - } + } o << "</tr>" end @rspreadsheet.first_row.upto(@rspreadsheet.last_row) do |y| if first_row and (y < first_row or y > last_row) next