Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: make addition of ToC idempotent
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