forked from sheetjs/sheetjs
Removed unnecessary console.error statements
Fixes #27 h/t Sebmaster for pointing this out
This commit is contained in:
parent
2610af7ce8
commit
dd9ac7d97f
@ -201,7 +201,6 @@ function parseProps(data) {
|
||||
switch(v[i].v) {
|
||||
case "Worksheets": widx = j; p.Worksheets = +v[++i]; break;
|
||||
case "Named Ranges": ++i; break; // TODO: Handle Named Ranges
|
||||
default: console.error("Unrecognized key in Heading Pairs: " + v[i++].v);
|
||||
}
|
||||
}
|
||||
var parts = parseVector(q.TitlesOfParts).map(utf8read);
|
||||
@ -357,8 +356,6 @@ function parseWB(data) {
|
||||
case '<mx:ArchID': break;
|
||||
case '<mc:AlternateContent': pass=true; break;
|
||||
case '</mc:AlternateContent>': pass=false; break;
|
||||
|
||||
default: if(!pass) console.error("WB Tag",x,y);
|
||||
}
|
||||
});
|
||||
if(wb.xmlns !== XMLNS_WB) throw "Unknown Namespace: " + wb.xmlns;
|
||||
|
5
xlsx.js
5
xlsx.js
@ -631,7 +631,6 @@ function parseProps(data) {
|
||||
switch(v[i].v) {
|
||||
case "Worksheets": widx = j; p.Worksheets = +v[++i]; break;
|
||||
case "Named Ranges": ++i; break; // TODO: Handle Named Ranges
|
||||
default: console.error("Unrecognized key in Heading Pairs: " + v[i++].v);
|
||||
}
|
||||
}
|
||||
var parts = parseVector(q.TitlesOfParts).map(utf8read);
|
||||
@ -787,8 +786,6 @@ function parseWB(data) {
|
||||
case '<mx:ArchID': break;
|
||||
case '<mc:AlternateContent': pass=true; break;
|
||||
case '</mc:AlternateContent>': pass=false; break;
|
||||
|
||||
default: if(!pass) console.error("WB Tag",x,y);
|
||||
}
|
||||
});
|
||||
if(wb.xmlns !== XMLNS_WB) throw "Unknown Namespace: " + wb.xmlns;
|
||||
@ -1038,7 +1035,7 @@ function sheet_to_csv(sheet) {
|
||||
var row = [];
|
||||
for(var C = r.s.c; C <= r.e.c; ++C) {
|
||||
var val = sheet[utils.encode_cell({c:C,r:R})];
|
||||
row.push(val ? stringify(val).replace(/\\r\\n/g,"\n").replace(/\\t/g,"\t").replace(/\\\\/g,"\\").replace(/\\\"/g,"\"\"") : "");
|
||||
row.push(val ? stringify(val).replace(/\\r\\n/g,"\n").replace(/\\t/g,"\t").replace(/\\\\/g,"\\").replace("\\\"","\"\"") : "");
|
||||
}
|
||||
out += row.join(",") + "\n";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user