Skip to content
Prev Previous commit
Next Next commit
Run prettier and fix test
  • Loading branch information
mojtaba-khallash committed Sep 4, 2021
commit bbeeff03c1cc359180ba748662daeb55255183a9
6 changes: 3 additions & 3 deletions src/modules/cell.js
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ import { jsPDF } from "../jspdf.js";
return pv;
}, {});
for (i = 0; i < data.length; i += 1) {
if (("rowStart" in config) && (config.rowStart instanceof Function)) {
if ("rowStart" in config && config.rowStart instanceof Function) {
config.rowStart({
row: i,
data: data[i]
Expand All @@ -540,13 +540,13 @@ import { jsPDF } from "../jspdf.js";

for (j = 0; j < headerNames.length; j += 1) {
var cellData = data[i][headerNames[j]];
if (("cellStart" in config) && (config.cellStart instanceof Function)) {
if ("cellStart" in config && config.cellStart instanceof Function) {
config.cellStart({
row: i,
col: j,
data: cellData
});
}
}
cell.call(
this,
new Cell(
Expand Down
Binary file modified test/reference/table-autoSize-headerNames.pdf
Binary file not shown.
Binary file modified test/reference/table-autoSize.pdf
Binary file not shown.
Binary file modified test/reference/table-formatted.pdf
Binary file not shown.
Binary file modified test/reference/table.pdf
Binary file not shown.