diff options
| author | Rob Donnelly <[email protected]> | 2021-02-03 12:19:22 -0800 |
|---|---|---|
| committer | Rob Donnelly <[email protected]> | 2021-02-03 12:19:22 -0800 |
| commit | c0be68939b34c37b50831ac1b77258ba0acdaa9e (patch) | |
| tree | 094245a15d8beadd20cdb01ccd0cf7fc2315967f | |
| parent | 40ef081e4d6b468d308c89324b49e551e8cad266 (diff) | |
| download | caxlsx-c0be68939b34c37b50831ac1b77258ba0acdaa9e.tar.gz caxlsx-c0be68939b34c37b50831ac1b77258ba0acdaa9e.zip | |
Fix special characters in table header
| -rw-r--r-- | lib/axlsx/workbook/worksheet/table.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/axlsx/workbook/worksheet/table.rb b/lib/axlsx/workbook/worksheet/table.rb index 6df71828..992486d2 100644 --- a/lib/axlsx/workbook/worksheet/table.rb +++ b/lib/axlsx/workbook/worksheet/table.rb @@ -80,7 +80,7 @@ module Axlsx str << ('<autoFilter ref="' << @ref << '"/>') str << ('<tableColumns count="' << header_cells.length.to_s << '">') header_cells.each_with_index do |cell,index| - str << ('<tableColumn id ="' << (index+1).to_s << '" name="' << cell.value << '"/>') + str << ('<tableColumn id ="' << (index+1).to_s << '" name="' << cell.clean_value << '"/>') end str << '</tableColumns>' table_style_info.to_xml_string(str) |
