Skip to content

Commit 74c6c1c

Browse files
davichpythonicrubyist
authored andcommitted
Ampersand escaped test fixed (#76)
* Failing test to show that ampersand gets escaped * Added working example for when xlsx file uses shared strings * Fix test by getting node value instead of inner_xml
1 parent debb898 commit 74c6c1c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/creek/sheet.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ def rows_generator include_meta_data=false, use_simple_rows_format=false
116116
cell = node.attributes['r']
117117
elsif (['v', 't'].include? node.name) and (node.node_type.eql? opener)
118118
unless cell.nil?
119-
cells[(use_simple_rows_format ? cell.tr("0-9", "") : cell)] = convert(node.inner_xml, cell_type, cell_style_idx)
119+
node.read
120+
cells[(use_simple_rows_format ? cell.tr("0-9", "") : cell)] = convert(node.value, cell_type, cell_style_idx)
120121
end
121122
end
122123
end

0 commit comments

Comments
 (0)