summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2012-03-27 09:54:17 +0900
committerRandy Morgan <[email protected]>2012-03-27 09:54:17 +0900
commit5ac9c5c94c396295136eec1ab117c3544795d9eb (patch)
tree678077720b297cb51f2032ec1a704f65b05abb3e
parent1bbcba13c7f65e725a79cc4b42f258ebe21ca8fa (diff)
downloadcaxlsx-5ac9c5c94c396295136eec1ab117c3544795d9eb.tar.gz
caxlsx-5ac9c5c94c396295136eec1ab117c3544795d9eb.zip
value and type required for shared_string comparison. this should be extracted.
-rw-r--r--lib/axlsx/workbook/worksheet/cell.rb4
1 files 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 << "<r><rPr>"
str << "<rFont val='%s'/>" % @font_name if @font_name
keys.each do |key|