Skip to content

Commit

Permalink
feat: make addition of ToC idempotent
Browse files Browse the repository at this point in the history
By design it was possible to add table of contents multiple times.
The rendered report then contained multiple table of contents.
Having a separate argument for table of contents instead of having
it in sections list makes multiple calls of add_table_of_contents()
idempotent — always only one ToC is rendered in the end.
  • Loading branch information
lukany committed Aug 10, 2023
1 parent 59b1c81 commit 9c6ae29
Show file tree
Hide file tree
Showing 3 changed files with 1,670 additions and 1,673 deletions.
Loading

0 comments on commit 9c6ae29

Please sign in to comment.