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:
Martin Heidegger committed 2014-01-06 17:19:18 +09:00
1 parent 3227e88216
commit 8fc8fc331f
1 file changed
+1 -1
+1 -1
View File
@@ -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();