From 7f39700f30ffdf7d3933e61bf244a41aeb8dee6c Mon Sep 17 00:00:00 2001 From: Randy Morgan Date: Sat, 17 Aug 2013 13:23:43 +0900 Subject: ensure that values are camelized for serialized attributes --- lib/axlsx/util/serialized_attributes.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/axlsx/util/serialized_attributes.rb b/lib/axlsx/util/serialized_attributes.rb index e421984b..80ac3c46 100644 --- a/lib/axlsx/util/serialized_attributes.rb +++ b/lib/axlsx/util/serialized_attributes.rb @@ -47,12 +47,11 @@ module Axlsx end key_value_pairs.merge! additional_attributes key_value_pairs.each do |key, value| - str << "#{Axlsx.camel(key, false)}=\"#{value}\" " + str << "#{Axlsx.camel(key, false)}=\"#{Axlsx.camel(value, false)}\" " end str end - # serialized instance values at text nodes on a camelized element of the # attribute name. You may pass in a block for evaluation against non nil # values. We use an array for element attributes becuase misordering will -- cgit v1.2.3