Skip to content

Commit

Permalink
return an empty excelx cell if a children are unknown
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Pchelintsev committed Jul 21, 2016
1 parent 1cbfe72 commit 5c70ad4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/roo/excelx/sheet_doc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ def cell_from_xml(cell_xml, hyperlink)
return create_cell_from_value(value_type, cell, formula, format, style, hyperlink, base_date, coordinate)
end
end

Excelx::Cell::Empty.new(coordinate)
end

def create_cell_from_value(value_type, cell, formula, format, style, hyperlink, base_date, coordinate)
Expand Down
2 changes: 2 additions & 0 deletions test/test_roo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
# with the wrong spreadsheet class
#STDERR.reopen "/dev/null","w"

Encoding.default_external = "UTF-8"

require 'test_helper'
require 'stringio'

Expand Down

0 comments on commit 5c70ad4

Please sign in to comment.