(tree, indent=0)
| 697 | return mapping |
| 698 | |
| 699 | def print_tree(tree, indent=0): |
| 700 | for node in tree: |
| 701 | summary = node.get('summary') or node.get('prefix_summary', '') |
| 702 | summary_str = f" — {summary[:60]}..." if summary else "" |
| 703 | print(' ' * indent + f"[{node.get('node_id', '?')}] {node.get('title', '')}{summary_str}") |
| 704 | if node.get('nodes'): |
| 705 | print_tree(node['nodes'], indent + 1) |
| 706 | |
| 707 | def print_wrapped(text, width=100): |
| 708 | for line in text.splitlines(): |
nothing calls this directly
no outgoing calls
no test coverage detected