Skip to content

Commit

Permalink
Accepting jurgenwigg's change suggestion mkpdfs_mkdocs/generator.py
Browse files Browse the repository at this point in the history
Co-authored-by: jurgenwigg <[email protected]>
  • Loading branch information
Ymil and jurgenwigg authored Oct 3, 2023
1 parent 04e29c0 commit a86364d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mkpdfs_mkdocs/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def add_tocs(self):
h3 = self.html.new_tag('h3')
h3.insert(0, n.title)
self._toc.append(h3)
if n.is_page and len(n.toc) > 0:
if n.is_page and n.toc:
ptoc = self._gen_toc_page(n.file.url, n.toc)
self._toc.append(ptoc)
else:
Expand Down

0 comments on commit a86364d

Please sign in to comment.