firx print_toc

This commit is contained in:
zmtomorrow 2025-08-31 11:51:50 +01:00
parent 7f0806a871
commit d4c910ad5a
2 changed files with 4 additions and 4 deletions

View file

@ -499,6 +499,7 @@ def remove_fields(data, fields=['text']):
return data
def print_toc(tree, indent=0):
print(tree)
for node in tree:
print(' ' * indent + node['title'])
if node.get('nodes'):