Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use styles when passing an array to worksheet.write.

  • Loading branch information...
commit 351bb54922ccfbd0dc7c6c32351f1ee44e30acb7 1 parent 64f16b7
Ana Nelson authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/surpass/worksheet.rb
2  lib/surpass/worksheet.rb
View
@@ -274,7 +274,7 @@ def set_range_style(row_range, col_range, style, create_blanks = false)
def write(r, c, label = "", style = nil)
if label.is_a?(Array)
if label[0].is_a?(Array)
- write_arrays(r, c, label)
+ write_arrays(r, c, label, style || true)
else
write_array_to_row(label, r, c)
end
Please sign in to comment.
Something went wrong with that request. Please try again.