forked from sheetjs/sheetjs
SheetJS
7e9f218f0f
- cellHTML controls HTML generation - cellFormula controls formula output - sheetStubs now defaults to false - cleaned up unnecessary CSV quotes (fixed #45) - updated test_files to 20140211 - updated SSF to 0.5.7 - removed unused main function - removed some dead code
13 lines
403 B
JavaScript
13 lines
403 B
JavaScript
function fixopts(opts) {
|
|
var defaults = [
|
|
['cellNF', false], /* emit cell number format string as .z */
|
|
['cellHTML', true], /* emit html string as .h */
|
|
['cellFormula', true], /* emit formulae as .h */
|
|
|
|
['sheetStubs', false], /* emit empty cells */
|
|
|
|
['WTF', false] /* WTF mode (do not use) */
|
|
];
|
|
defaults.forEach(function(d) { if(typeof opts[d[0]] === 'undefined') opts[d[0]] = d[1]; });
|
|
}
|