diff --git a/xlsx.js b/xlsx.js
index 0ebfa54..3134be9 100644
--- a/xlsx.js
+++ b/xlsx.js
@@ -102,12 +102,15 @@ function parseSheet(data) { //TODO: use a real xml parser
//s.cells = {};
var q = ["v","f"];
if(!data.match(//))
- data.match(/(.*)<\/sheetData>/)[1].split("").forEach(function(x) { if(x === "") return;
+ data.match(/(.*)<\/sheetData>/)[1].split("").forEach(function(x) {
+ if(x === "") return;
var row = parsexmltag(x.match(/]*>/)[0]); //s.rows[row.r]=row.spans;
if(refguess.s.r > row.r - 1) refguess.s.r = row.r - 1;
if(refguess.e.r < row.r - 1) refguess.e.r = row.r - 1;
- var cells = x.substr(x.indexOf('>')+1).split(/<\/c>|\/>/);
+
+ var cells = x.substr(x.indexOf('>')+1).split(/ idx) refguess.s.c = idx;
if(refguess.e.c < idx) refguess.e.c = idx;
var cell = parsexmltag((c.match(/]*>/)||[c])[0]); delete cell[0];