diff options
| author | Randy Morgan <[email protected]> | 2012-03-27 11:02:04 +0900 |
|---|---|---|
| committer | Randy Morgan <[email protected]> | 2012-03-27 11:02:04 +0900 |
| commit | 7cdd465b283bb74ccaa6e7037f6937bf1c207e1e (patch) | |
| tree | 12c925ee0c1aacc2a4aca97ef5b793874d24cbcc /lib/axlsx/stylesheet | |
| parent | 5ac9c5c94c396295136eec1ab117c3544795d9eb (diff) | |
| download | caxlsx-7cdd465b283bb74ccaa6e7037f6937bf1c207e1e.tar.gz caxlsx-7cdd465b283bb74ccaa6e7037f6937bf1c207e1e.zip | |
properly render inline colors
Diffstat (limited to 'lib/axlsx/stylesheet')
| -rw-r--r-- | lib/axlsx/stylesheet/color.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/axlsx/stylesheet/color.rb b/lib/axlsx/stylesheet/color.rb index a4942724..5d3e60ca 100644 --- a/lib/axlsx/stylesheet/color.rb +++ b/lib/axlsx/stylesheet/color.rb @@ -63,9 +63,9 @@ module Axlsx def to_xml_string str = ["<color "] - str << "tint='%s' " % tint if @tint - str << "rgb='%s' " % rgb if @rgb - str << "auto='%s'" % auto if @auto + self.instance_values.each do |key, value| + str << "%s='%s' " % [key, value] + end str << "/>" str.join end |
