summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--lib/axlsx/stylesheet/num_fmt.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/axlsx/stylesheet/num_fmt.rb b/lib/axlsx/stylesheet/num_fmt.rb
index 8276ba18..1072d18a 100644
--- a/lib/axlsx/stylesheet/num_fmt.rb
+++ b/lib/axlsx/stylesheet/num_fmt.rb
@@ -73,5 +73,14 @@ module Axlsx
serialized_tag('numFmt', str)
end
+ # Override to avoid removing underscores
+ def serialized_attributes(str = '', additional_attributes = {})
+ attributes = declared_attributes.merge! additional_attributes
+ attributes.each do |key, value|
+ str << "#{Axlsx.camel(key, false)}=\"#{Axlsx.booleanize(value)}\" "
+ end
+ str
+ end
+
end
end