diff --git a/manifest.json b/manifest.json index 1084d2a..5636d9d 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "excel", "name": "Excel", - "version": "1.3.19", + "version": "1.3.20", "minAppVersion": "0.15.0", "description": "Create spreadsheets and easily embed them in Markdown", "author": "ljcoder", diff --git a/src/ExcelView.ts b/src/ExcelView.ts index 4478037..74478b1 100644 --- a/src/ExcelView.ts +++ b/src/ExcelView.ts @@ -102,6 +102,12 @@ export class ExcelView extends TextFileView { process_wb(wb: XLSX.WorkBook) { const sheetData = stox(wb); if (sheetData) { + sheetData.forEach((sheet) => { + if (sheet.rows) { + const last = Object.keys(sheet.rows).last() || "100" + sheet.rows.len = Math.max(100, parseInt(last) + 20) + } + }) this.sheet.loadData(sheetData) this.saveData(JSON.stringify(sheetData)) } else {