From 043dc9ad9a807c9011821840cd3f43ca71456c2e Mon Sep 17 00:00:00 2001 From: Jurriaan Pruis Date: Sat, 1 Mar 2014 21:17:25 +0100 Subject: Implemented RichText (multiple text runs) and added multiline autowidth for both RichText and normal strings --- lib/axlsx/workbook/shared_strings_table.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/axlsx/workbook/shared_strings_table.rb') diff --git a/lib/axlsx/workbook/shared_strings_table.rb b/lib/axlsx/workbook/shared_strings_table.rb index ebec6e67..7e9402b2 100644 --- a/lib/axlsx/workbook/shared_strings_table.rb +++ b/lib/axlsx/workbook/shared_strings_table.rb @@ -38,7 +38,7 @@ module Axlsx @xml_space = xml_space @unique_cells = {} @shared_xml_string = "" - shareable_cells = cells.flatten.select{ |cell| cell.plain_string? } + shareable_cells = cells.flatten.select{ |cell| cell.plain_string? || cell.contains_rich_text? } @count = shareable_cells.size resolve(shareable_cells) end -- cgit v1.2.3