lib/axlsx/drawing/series.rb in axlsx-2.0.1 vs lib/axlsx/drawing/series.rb in axlsx-2.1.0.pre

- old
+ new

@@ -57,13 +57,13 @@ # Serializes the object # @param [String] str # @return [String] def to_xml_string(str = '') str << '<c:ser>' - str << '<c:idx val="' << index.to_s << '"/>' - str << '<c:order val="' << (order || index).to_s << '"/>' + str << ('<c:idx val="' << index.to_s << '"/>') + str << ('<c:order val="' << (order || index).to_s << '"/>') title.to_xml_string(str) unless title.nil? - yield str if block_given? + yield if block_given? str << '</c:ser>' end end end