version bump 0.2.4: CSV unwind JS escaping

This commit is contained in:
SheetJS 2013-04-08 16:11:47 -04:00
parent e3301e1ff1
commit d54b9eaa71
2 changed files with 2 additions and 2 deletions

@ -1,6 +1,6 @@
{
"name": "xlsx",
"version": "0.2.3",
"version": "0.2.4",
"author": "Niggler",
"description": "(one day) a full-featured XLSX parser and writer. For now, primitive parser",
"keywords": [

@ -906,7 +906,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) : "");
row.push(val ? stringify(val).replace(/\\r\\n/g,"\n").replace(/\\t/g,"\t").replace(/\\\\/g,"\\") : "");
}
out += row.join(",") + "\n";
}