From dfc4f57d3153c4d7c8800cfd9f59df9b31dcdf93 Mon Sep 17 00:00:00 2001 From: Randy Morgan Date: Tue, 15 May 2012 12:10:39 +0900 Subject: patch for 1.8.7 --- lib/axlsx/stylesheet/table_style.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/axlsx/stylesheet/table_style.rb') diff --git a/lib/axlsx/stylesheet/table_style.rb b/lib/axlsx/stylesheet/table_style.rb index 324f33d6..db837b99 100644 --- a/lib/axlsx/stylesheet/table_style.rb +++ b/lib/axlsx/stylesheet/table_style.rb @@ -40,10 +40,10 @@ module Axlsx # @param [String] str # @return [String] def to_xml_string(str = '') - attr = self.instance_values.select { |k, v| [:name, :pivot, :table].include? k } - attr[:count] = self.size + attrs = instance_values.reject { |k, v| ![:name, :pivot, :table].include?(k) } + attrs[:count] = self.size str << '' each { |table_style_el| table_style_el.to_xml_string(str) } str << '' -- cgit v1.2.3