- for idx, row in enumerate(grid._rows):
- if idx and idx % grid._box_height == 0:
+ for idx, row in enumerate(grid.rows):
+ if idx and idx % grid.box_height == 0:
parts.append(self.inside_grid(grid))
parts.append(self.render_row(row))
parts.append(self.after_grid(grid))
parts.append(self.inside_grid(grid))
parts.append(self.render_row(row))
parts.append(self.after_grid(grid))
parts.append(self.before_row(row))
for idx, cell in enumerate(row.cells):
parts.append(self.before_row(row))
for idx, cell in enumerate(row.cells):
parts.append(self.inside_row(row))
parts.extend(self.render_cell(cell))
parts.append(self.after_row(row))
parts.append(self.inside_row(row))
parts.extend(self.render_cell(cell))
parts.append(self.after_row(row))