-
Notifications
You must be signed in to change notification settings - Fork 114
Description
Previously mentioned in #89
Although Creek is not intended to do any calculations or handling of formulas in cells, it is unfortunately corrupting the data in that type of cell as it's being read.
Cells with type Formula and content such as =HYPERLINK('https://some/link/or/other') get turned into number types with 0 as the content.
This makes it unusable even just for copying or merging files.
Expected behavior is just that the type and content of the cells are not changed on reading.
Even if that means the data for formula cells has to be represented as binary data blobs in Ruby, that would be preferable to having the data changed to 0.
Example:
Given an input file with content
number,name,link
1,test item,=HYPERLINK('https://some/link/or/other')
and reader code
workbook = Creek::Book.new(test_item_list_path)
sheet = workbook.sheets[0]
sheet.rows.each do |row|
//something with the data
endOn the second iteration, the value for row should be
{"A2"=>"1", "B2"=>"test item", "C2"=>"=HYPERLINK('https://some/link/or/other')"}but actually is
{"A2"=>"1", "B2"=>"test item", "C2"=>"0"}