From b04960045a522b40adfe6814a4cc4c458a212794 Mon Sep 17 00:00:00 2001 From: Hartmut Holzgraefe Date: Sat, 18 Oct 2025 11:24:04 +0000 Subject: [PATCH] make index on separate page work again (Issue #116) For some reason that I don't fully understand yet the output format string passed to the multipage output capability check method gets converted to uppercase. So the check for lowercase "pdf" failed, and none of the file formats could be identified as supporting multiple pages. For now it compares for both lower case "pdf" and uppder case "PDF", and with that the index output on an extra page for PDF format output works again. --- ocitysmap/layoutlib/abstract_renderer.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ocitysmap/layoutlib/abstract_renderer.py b/ocitysmap/layoutlib/abstract_renderer.py index 479c9cd..2ef440e 100644 --- a/ocitysmap/layoutlib/abstract_renderer.py +++ b/ocitysmap/layoutlib/abstract_renderer.py @@ -340,6 +340,8 @@ class Renderer: def _has_multipage_format(self): if self.rc.output_format == 'pdf': return True + if self.rc.output_format == 'PDF': + return True return False @staticmethod