Skip to content

Commit f824a62

Browse files
author
Robert Brazier
committed
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
1 parent 97ecd69 commit f824a62

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/rubyXL/parser.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ def Parser.convert_to_index(cell_string)
2020
col = 0
2121
i = 0
2222
if @@parsed_column_hash[one].nil?
23-
puts "||#{one}||"
2423
two = one.reverse #because of 26^i calculation
2524
two.each_byte do |c|
2625
int_val = c - 64 #converts A to 1
@@ -227,7 +226,7 @@ def Parser.fill_worksheet(wb,i,files,shared_strings)
227226

228227
wb.worksheets[i].row_styles[row_attributes['r'].content] = { :style => row_style }
229228

230-
unless row_attributes['ht'].content == ""
229+
if !row_attributes['ht'].nil? && !row_attributes['ht'].content.blank?
231230
wb.worksheets[i].change_row_height(Integer(row_attributes['r'].content)-1,
232231
Float(row_attributes['ht'].content))
233232
end

0 commit comments

Comments
 (0)