summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/workbook/shared_strings_table.rb
diff options
context:
space:
mode:
authorJurriaan Pruis <[email protected]>2014-03-01 21:17:25 +0100
committerJurriaan Pruis <[email protected]>2014-03-01 21:17:25 +0100
commit043dc9ad9a807c9011821840cd3f43ca71456c2e (patch)
tree6396b045e3fc3302a53d82dbcbcff408efd1662e /lib/axlsx/workbook/shared_strings_table.rb
parent852586d08d757204f7b2ad424e273518ff17892c (diff)
downloadcaxlsx-043dc9ad9a807c9011821840cd3f43ca71456c2e.tar.gz
caxlsx-043dc9ad9a807c9011821840cd3f43ca71456c2e.zip
Implemented RichText (multiple text runs)
and added multiline autowidth for both RichText and normal strings
Diffstat (limited to 'lib/axlsx/workbook/shared_strings_table.rb')
-rw-r--r--lib/axlsx/workbook/shared_strings_table.rb2
1 files changed, 1 insertions, 1 deletions
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