MCPcopy Create free account
hub / github.com/aitjcize/cppman / get_row_width

Method get_row_width

cppman/formatter/tableparser.py:61–69  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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:

Callers 1

scan_formatMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected