(self)
| 59 | c.traverse(depth + 2) |
| 60 | |
| 61 | def get_row_width(self): |
| 62 | total = 0 |
| 63 | assert self.name == 'tr' |
| 64 | for c in self.children: |
| 65 | if 'colspan' in c.attr: |
| 66 | total += int(c.attr['colspan']) |
| 67 | else: |
| 68 | total += 1 |
| 69 | return total |
| 70 | |
| 71 | def scan_format(self, index=0, width=0, rowspan=None): |
| 72 | if rowspan is None: |