def start_td(self, attrs): self.__flush() self.in_td = True cell = Cell() for key, value in attrs: if key == 'rowspan': cell.rowspan = int(value) elif key == 'colspan': cell.colspan = int(value) self.cells.append(cell)
def start_td(self, attrs): self.__flush() self.in_td = True cell = Cell() for key, value in attrs: if key == 'rowspan': cell.rowspan = int(value) elif key == 'colspan': cell.colspan = int(value) self.cells.append(cell)