From 5ac9c5c94c396295136eec1ab117c3544795d9eb Mon Sep 17 00:00:00 2001 From: Randy Morgan Date: Tue, 27 Mar 2012 09:54:17 +0900 Subject: value and type required for shared_string comparison. this should be extracted. --- lib/axlsx/workbook/worksheet/cell.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/axlsx/workbook/worksheet/cell.rb b/lib/axlsx/workbook/worksheet/cell.rb index 4ed8c1a4..ba9cf8b5 100644 --- a/lib/axlsx/workbook/worksheet/cell.rb +++ b/lib/axlsx/workbook/worksheet/cell.rb @@ -30,7 +30,7 @@ module Axlsx # needs to define bla=(v) and bla methods on the class that hook into a # set_attr method that kicks the suplied validator and updates the instance_variable # for the key - INLINE_STYLES = ['font_name', 'charset', + INLINE_STYLES = ['value', 'type', 'font_name', 'charset', 'family', 'b', 'i', 'strike','outline', 'shadow', 'condense', 'extend', 'u', 'vertAlign', 'sz', 'color', 'scheme'] @@ -291,7 +291,7 @@ module Axlsx str = [] if is_text_run? keys = self.instance_values.reject{|key, value| value == nil }.keys & INLINE_STYLES - keys.delete 'font_name' + keys.delete ['font_name', 'value', 'type'] str << "" str << "" % @font_name if @font_name keys.each do |key| -- cgit v1.2.3