Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed an error condition created by the new parsing when the row had …

…no ht attribute. Removed a puts statement inserted from the last patch
  • Loading branch information...
commit f824a62e574db13bac9eafcfc17d6e00a3f9e7a5 1 parent 97ecd69
Robert Brazier authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  lib/rubyXL/parser.rb
View
3  lib/rubyXL/parser.rb
@@ -20,7 +20,6 @@ def Parser.convert_to_index(cell_string)
col = 0
i = 0
if @@parsed_column_hash[one].nil?
- puts "||#{one}||"
two = one.reverse #because of 26^i calculation
two.each_byte do |c|
int_val = c - 64 #converts A to 1
@@ -227,7 +226,7 @@ def Parser.fill_worksheet(wb,i,files,shared_strings)
wb.worksheets[i].row_styles[row_attributes['r'].content] = { :style => row_style }
- unless row_attributes['ht'].content == ""
+ if !row_attributes['ht'].nil? && !row_attributes['ht'].content.blank?
wb.worksheets[i].change_row_height(Integer(row_attributes['r'].content)-1,
Float(row_attributes['ht'].content))
end
Please sign in to comment.
Something went wrong with that request. Please try again.