From 3fe42dc54f470a330046dec56136a4de57a12246 Mon Sep 17 00:00:00 2001 From: Richard Schreiber Date: Thu, 16 Oct 2025 17:45:44 +0200 Subject: [PATCH] fix flake8 --- src/pretix/base/invoicing/pdf.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pretix/base/invoicing/pdf.py b/src/pretix/base/invoicing/pdf.py index 2b873f7eb7..99a9ffacb2 100644 --- a/src/pretix/base/invoicing/pdf.py +++ b/src/pretix/base/invoicing/pdf.py @@ -787,13 +787,13 @@ class ClassicInvoiceRenderer(BaseReportlabInvoiceRenderer): break curr_description = description = description[len(curr_description):].lstrip() # use different settings for all except first line - max_width = sum(colwidths[0:(3 if has_taxes else 2)]) + max_width = sum(colwidths[0:(3 if has_taxes else 2)]) max_height = 0.2 * doc.height p_style = self.stylesheet['Fineprint'] continue if h > max_height * 1.25: - # quickly bring the text-length down to a managable length to then stepwise reduce + # quickly bring the text-length down to a managable length to then stepwise reduce wrap_to = math.ceil(len(curr_description) * max_height * 1.25 / h) else: # long trimming long texts by percent creates to big jumps, but trimming short texts @@ -920,7 +920,7 @@ class ClassicInvoiceRenderer(BaseReportlabInvoiceRenderer): ( 'BOTTOMPADDING', (0, len(tdata) - len(description_p_list)), - (-1, len(tdata) - 2), + (-1, len(tdata) - 2), 0 ), (