summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/stylesheet
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2012-10-18 22:33:41 +0900
committerRandy Morgan <[email protected]>2012-10-18 22:33:41 +0900
commit2d0815b2bd24f895ece4f368871f70f219517f26 (patch)
tree653449a095959eeaebeb9aad58c4736a47446b99 /lib/axlsx/stylesheet
parentdfd44cc1d6008a58f78b5e01452b1da69137389f (diff)
downloadcaxlsx-2d0815b2bd24f895ece4f368871f70f219517f26.tar.gz
caxlsx-2d0815b2bd24f895ece4f368871f70f219517f26.zip
Refactored color to_xml_string to accept a tag name as colors are sometimes serialized as differntly named nodes with the same data content
Diffstat (limited to 'lib/axlsx/stylesheet')
-rw-r--r--lib/axlsx/stylesheet/color.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/axlsx/stylesheet/color.rb b/lib/axlsx/stylesheet/color.rb
index b5537ac1..8b36dbd2 100644
--- a/lib/axlsx/stylesheet/color.rb
+++ b/lib/axlsx/stylesheet/color.rb
@@ -69,8 +69,8 @@ module Axlsx
# Serializes the object
# @param [String] str
# @return [String]
- def to_xml_string(str = '')
- str << "<color "
+ def to_xml_string(str = '', tagName = 'color')
+ str << "<" << tagName << " "
serialized_attributes str
str << "/>"
end