SheetJS
3fd73f806b
- pin unknown dates and zero-fill end of file - cfb_add can take an absolute path e.g. "/Workbook"
10 lines
341 B
JavaScript
10 lines
341 B
JavaScript
for(i = 1; i < cfb.FileIndex.length; ++i) {
|
|
file = cfb.FileIndex[i];
|
|
/*:: if(!file.content) throw new Error("unreachable"); */
|
|
if(file.size > 0 && file.size < 0x1000) {
|
|
for(j = 0; j < file.size; ++j) o.write_shift(1, file.content[j]);
|
|
for(; j & 0x3F; ++j) o.write_shift(1, 0);
|
|
}
|
|
}
|
|
while(o.l < o.length) o.write_shift(1, 0);
|