lib/osheet/xmlss_writer/elements.rb in osheet-0.9.0 vs lib/osheet/xmlss_writer/elements.rb in osheet-0.9.1
- old
+ new
@@ -54,10 +54,11 @@
:style_id => style_id(ocell.attributes[:style_class], ocell.attributes[:format]),
:href => ocell.attributes[:href],
:index => ocell.attributes[:index],
:merge_across => cell_merge(ocell.attributes[:colspan]),
:merge_down => cell_merge(ocell.attributes[:rowspan]),
- :data => data(ocell.attributes[:data])
+ :data => data(ocell.attributes[:data]),
+ :formula => ocell.attributes[:formula]
})
end
def cell_merge(span)
span.kind_of?(::Fixnum) && span > 1 ? span-1 : 0
end