Skip to content

Commit

Permalink
Merge pull request #406 from kakoni/master
Browse files Browse the repository at this point in the history
fixes #375
  • Loading branch information
stevendaniels authored Feb 14, 2018
2 parents a738d98 + 4da106b commit 3ed05e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/roo/csv.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def set_row_count(sheet)

def set_column_count(sheet)
@first_column[sheet] = 1
@last_column[sheet] = (::CSV.readlines(@filename, csv_options).first || []).size
@last_column[sheet] = (::CSV.readlines(@filename, csv_options).max_by(&:length) || []).size
@last_column[sheet] = @first_column[sheet] if @last_column[sheet].zero?

nil
Expand Down

0 comments on commit 3ed05e1

Please sign in to comment.