def _parse_division(para): nonlocal next_parser if next_parser: return next_parser(para) elif matchers.division(para): div_node = _aaa(dom, 'container', 'Division', **match.groupdict()) next_parser = NextParser(div_node) return True else: return True
def _parse_division(para): nonlocal next_parser if next_parser: return next_parser(para) elif matchers.division(para): div_node = _make_level(dom, 'toc', 'Division', **match.groupdict()) next_parser = NextParser(div_node) return True else: return True