diff options
Diffstat (limited to 'lib/axlsx/stylesheet')
| -rw-r--r-- | lib/axlsx/stylesheet/color.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/axlsx/stylesheet/color.rb b/lib/axlsx/stylesheet/color.rb index 5d3e60ca..2a08fd3c 100644 --- a/lib/axlsx/stylesheet/color.rb +++ b/lib/axlsx/stylesheet/color.rb @@ -62,12 +62,11 @@ module Axlsx # def indexed=(v) Axlsx::validate_unsigned_integer v; @indexed = v end def to_xml_string - str = ["<color "] + str = "<color " self.instance_values.each do |key, value| - str << "%s='%s' " % [key, value] + str << key << '="' << value.to_s << '" ' end str << "/>" - str.join end # Serializes the color |
