fix: robustify EndSetup detection and add warning test

This commit is contained in:
Oliver Hofmann committed 2026-06-02 21:03:13 +02:00
1 parent ca895889f9
commit fc57b48eb8
2 files changed
+7 -1

No files matched your search

+1 -1
View File
@@ -34,7 +34,7 @@ def process_stream(lines, account_code):
for line in lines:
stripped = line.rstrip(b'\r\n')
if not injected and (stripped == b'%%EndSetup' or stripped.startswith(b'%%Page:')):
if not injected and (stripped.rstrip() == b'%%EndSetup' or stripped.startswith(b'%%Page:')):
yield inject
injected = True
yield line