summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--lib/axlsx/util/serialized_attributes.rb3
1 files changed, 1 insertions, 2 deletions
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