Skip to content

Commit

Permalink
chore: merge pull request #35 from AdrianDC/master
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienbrignon authored Sep 1, 2024
2 parents f78ad8e + d2b8617 commit de1099e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mkdocs_exporter/formats/pdf/aggregator.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ def set_pages(self, pages: list[Page]) -> Aggregator:
elif covers == 'back':
self._skip(page, ['front'])
elif covers == 'limits':
if index == 0:
if len(self.pages) == 1:
pass
elif index == 0:
self._skip(page, ['back'])
elif index == (len(self.pages) - 1):
self._skip(page, ['front'])
Expand Down

0 comments on commit de1099e

Please sign in to comment.