def _parse_history(para): nonlocal found if not found and para.get('history', True) and matchers.history(para): _aaa(dom, 'annoGroup', heading="History", text=para['richtext']) found = True return True return False
def _parse_history(para): nonlocal found if not found and para.get('history', True) and matchers.history(para): _make_level(dom, heading="History", text=para['text']) found = True return True return False
def _get_next_level(para): """ return the next para level, or none if there is no next para """ while True: para = para['next']() if para is None or matchers.history(para): return None props = _get_para_node_props(para) if props: return props['indent']