MCPcopy Create free account
hub / github.com/chatdoc-com/OCRFlux / bracket

Method bracket

eval/eval_html_table_merge.py:21–30  ·  view source on GitHub ↗

Show tree using brackets notation

(self)

Source from the content-addressed store, hash-verified

19 self.children = list(children)
20
21 def bracket(self):
22 """Show tree using brackets notation"""
23 if self.tag == 'td':
24 result = '"tag": %s, "colspan": %d, "rowspan": %d, "text": %s' % \
25 (self.tag, self.colspan, self.rowspan, self.content)
26 else:
27 result = '"tag": %s' % self.tag
28 for child in self.children:
29 result += child.bracket()
30 return "{{{}}}".format(result)
31
32
33class CustomConfig(Config):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected