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.
master
Hartmut Holzgraefe 2025-10-18 11:24:04 +00:00
rodzic ac04274920
commit b04960045a
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -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