mirror of
https://github.com/bdnugget/excel.js.git
synced 2026-11-07 05:17:27 +00:00
Ignore phonetic text nodes
Japanese Excel occasionally stores phonetics as well as the regular text in the xlsx sheet. Those nodes do not show up to a excel user so they can be ignored.
This commit is contained in:
1 parent
3227e88216
commit
8fc8fc331f
1 file changed
+1
-1
+1
-1
@@ -138,7 +138,7 @@ function extractData(files) {
|
||||
var value = cell.value;
|
||||
|
||||
if (cell.type == 's') {
|
||||
values = strings.find('//a:si[' + (parseInt(value) + 1) + ']//a:t', ns)
|
||||
values = strings.find('//a:si[' + (parseInt(value) + 1) + ']//a:t[not(ancestor::a:rPh)]', ns)
|
||||
value = "";
|
||||
for (var i = 0; i < values.length; i++) {
|
||||
value += values[i].text();
|
||||
|
||||
Reference in new issue
Block a user