Adding sheetFormatPr for better compat with macos preview #437
4
xlsx.js
4
xlsx.js
|
@ -7552,6 +7552,10 @@ function write_ws_xml(idx, opts, wb) {
|
|||
var ref = ws['!ref']; if(ref === undefined) ref = 'A1';
|
||||
o[o.length] = (writextag('dimension', null, {'ref': ref}));
|
||||
|
||||
o[o.length] = writextag('sheetFormatPr', null, {
|
||||
defaultRowHeight: (opts.sheetFormat && opts.sheetFormat.defaultRowHeight) || '13.5',
|
||||
});
|
||||
|
||||
if(ws['!cols'] !== undefined && ws['!cols'].length > 0) o[o.length] = (write_ws_xml_cols(ws, ws['!cols']));
|
||||
o[sidx = o.length] = '<sheetData/>';
|
||||
if(ws['!ref'] !== undefined) {
|
||||
|
|
Loading…
Reference in New Issue