Skip to content

Commit

Permalink
[WiP] New ToC generator based on querying the docbook XML
Browse files Browse the repository at this point in the history
Get the table-of-contents item depth
  • Loading branch information
shlomif committed Aug 24, 2024
1 parent 77303e6 commit 2514bc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gen-toc-based-on-docbook5.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def _process_sections():
parent = parent.getparent()
assert count_parent_section_elements > 0
output_text += "{}* [{}](#{})\n".format(
(" " * (count_parent_section_elements - 1)),
(" " * (4 * (count_parent_section_elements - 1))),
docbook5_title, id2)
print(output_text)
return output_text
Expand Down

0 comments on commit 2514bc1

Please sign in to comment.