From be2d7bee9b9236fff4a378db8770c3ae793e8422 Mon Sep 17 00:00:00 2001 From: Randy Morgan Date: Tue, 27 Mar 2012 19:11:24 +0900 Subject: use << for row string processing as well. --- lib/axlsx/workbook/worksheet/row.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/axlsx/workbook/worksheet/row.rb b/lib/axlsx/workbook/worksheet/row.rb index cec2eb25..30101a28 100644 --- a/lib/axlsx/workbook/worksheet/row.rb +++ b/lib/axlsx/workbook/worksheet/row.rb @@ -61,9 +61,9 @@ module Axlsx def to_xml_string if custom_height? - "%s" % [index+1, height, @cells.inject("") { |memo, obj| obj.to_xml_string }] + '' << @cells.map { |cell| cell.to_xml_string }.join << '' else - "%s" % [index+1, @cells.map{ |obj| obj.to_xml_string }.join] + '' << (@cells.map { |cell| cell.to_xml_string }.join) << '' end end # Serializes the row -- cgit v1.2.3