From ace4071e09c7b2d084bf0bebdc71a3a938771665 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20B=C3=BCnemann?= Date: Thu, 28 Jul 2016 17:53:46 +0200 Subject: [PATCH] Fix wrong array syntax in README MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit %[] without w or W prefix is simply a string… --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 47eb97b..e8b2a0d 100644 --- a/README.md +++ b/README.md @@ -37,8 +37,8 @@ io = StringIO.new('') xlsx = Xlsxtream::Workbook.new(io) xlsx.write_worksheet "Sheet1" do |sheet| # Number of columns doesn't have to match - sheet << %[first row] - sheet << %[second row with more colums] + sheet << %w[first row] + sheet << %w[second row with more colums] end # Write multiple worksheets with custom names: xlsx.write_worksheet "Foo & Bar" do |sheet| @@ -52,9 +52,9 @@ end # have a huge amount of rows or a little duplication of content # accros cells. A single SST is used across the whole workbook. xlsx.write_worksheet("SST", use_shared_strings: true) do |sheet| - sheet << %(the same old story) - sheet << %(the old same story) - sheet << %(old, the same story) + sheet << %w[the same old story] + sheet << %w[the old same story] + sheet << %w[old, the same story] end # Writes metadata and ZIP archive central directory. xlsx.close