summaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorRob Donnelly <[email protected]>2021-02-03 13:08:22 -0800
committerRob Donnelly <[email protected]>2021-02-03 13:08:22 -0800
commitfb7b437a2c75075c6ff99e441a0cf22428b2ebdc (patch)
treed783ca0770465818dbc6d53d169bcc00ab68311e /lib
parent82331ab312935111217359b0a24cc20acaf9457e (diff)
downloadcaxlsx-fb7b437a2c75075c6ff99e441a0cf22428b2ebdc.tar.gz
caxlsx-fb7b437a2c75075c6ff99e441a0cf22428b2ebdc.zip
Fix special characters in pivot table cache definition
Diffstat (limited to 'lib')
-rw-r--r--lib/axlsx/workbook/worksheet/pivot_table_cache_definition.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/axlsx/workbook/worksheet/pivot_table_cache_definition.rb b/lib/axlsx/workbook/worksheet/pivot_table_cache_definition.rb
index f136b663..969b0bf2 100644
--- a/lib/axlsx/workbook/worksheet/pivot_table_cache_definition.rb
+++ b/lib/axlsx/workbook/worksheet/pivot_table_cache_definition.rb
@@ -53,7 +53,7 @@ module Axlsx
str << '</cacheSource>'
str << ( '<cacheFields count="' << pivot_table.header_cells_count.to_s << '">')
pivot_table.header_cells.each do |cell|
- str << ( '<cacheField name="' << cell.value << '" numFmtId="0">')
+ str << ( '<cacheField name="' << cell.clean_value << '" numFmtId="0">')
str << '<sharedItems count="0">'
str << '</sharedItems>'
str << '</cacheField>'