From 757d34152746333f2fa9f1de9b44048ce9a331ad Mon Sep 17 00:00:00 2001 From: Randy Morgan Date: Thu, 18 Oct 2012 22:35:12 +0900 Subject: refactored pattern_fill to specify tag name for fg and bg colors --- lib/axlsx/stylesheet/pattern_fill.rb | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/lib/axlsx/stylesheet/pattern_fill.rb b/lib/axlsx/stylesheet/pattern_fill.rb index c06c7f16..504624e6 100644 --- a/lib/axlsx/stylesheet/pattern_fill.rb +++ b/lib/axlsx/stylesheet/pattern_fill.rb @@ -6,7 +6,6 @@ module Axlsx class PatternFill include Axlsx::OptionsParser - # Creates a new PatternFill Object # @option options [Symbol] patternType # @option options [Color] fgColor @@ -62,19 +61,11 @@ module Axlsx def to_xml_string(str = '') str << '' if fgColor.is_a?(Color) - str << "" + fgColor.to_xml_string str, "fgColor" end if bgColor.is_a?(Color) - str << "" + bgColor.to_xml_string str, "bgColor" end str << '' end -- cgit v1.2.3