updating to 0.7.3

This commit is contained in:
SheetJS 2014-05-25 02:05:30 -07:00
parent 8c5a0b5980
commit 742249e48b
2 changed files with 9 additions and 7 deletions

6
xlsx.core.min.js vendored

File diff suppressed because one or more lines are too long

10
xlsx.js

@ -2,10 +2,10 @@
/* vim: set ts=2: */
var XLSX = {};
(function(XLSX){
XLSX.version = '0.7.2';
XLSX.version = '0.7.3';
var current_codepage = 1252, current_cptable;
if(typeof module !== "undefined" && typeof require !== 'undefined') {
if(typeof cptable === 'undefined') cptable = require('codepage');
if(typeof cptable === 'undefined') cptable = require('./dist/cpexcel');
current_cptable = cptable[current_codepage];
}
function reset_cp() { set_cp(1252); }
@ -675,7 +675,8 @@ var rencstr = "&<>'\"".split("");
// TODO: CP remap (need to read file version to determine OS)
function unescapexml(text){
var s = text + '';
for(var y in encodings) s = s.replace(new RegExp(y,'g'), encodings[y]);
s = s.replace(/&quot;/g, '"').replace(/&apos;/g, "'").replace(/&gt;/g, ">").replace(/&lt;/g, "<").replace(/&amp;/g, "&");
//for(var y in encodings) s = s.replace(new RegExp(y,'g'), encodings[y]);
return s.replace(/_x([0-9a-fA-F]*)_/g,function(m,c) {return _chr(parseInt(c,16));});
}
function escapexml(text){
@ -696,6 +697,7 @@ function parsexmlbool(value, tag) {
var utf8read = function(orig) {
var out = [], i = 0, c = 0, c1 = 0, c2 = 0, c3 = 0;
if(!orig.match(/[\u0080-\uffff]/)) return orig;
while (i < orig.length) {
c = orig.charCodeAt(i++);
if (c < 128) out.push(_chr(c));
@ -2165,7 +2167,7 @@ function parse_ws_xml(data, opts, rels) {
}
var refguess = {s: {r:1000000, c:1000000}, e: {r:0, c:0} };
var q = ["v","f"];
var q = (opts.cellFormula ? ["v","f"] : ["v"]);
var sidx = 0;
/* 18.3.1.80 sheetData CT_SheetData ? */