From 5dc8610be5f7bebed1cfae5d1c62f44c85660c40 Mon Sep 17 00:00:00 2001 From: Richard Schreiber Date: Fri, 17 Oct 2025 10:23:13 +0200 Subject: [PATCH] fix max_width missing cellpadding --- src/pretix/base/invoicing/pdf.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pretix/base/invoicing/pdf.py b/src/pretix/base/invoicing/pdf.py index 99a9ffacb2..94a77fc57c 100644 --- a/src/pretix/base/invoicing/pdf.py +++ b/src/pretix/base/invoicing/pdf.py @@ -772,8 +772,9 @@ class ClassicInvoiceRenderer(BaseReportlabInvoiceRenderer): # start first line with different settings than the rest of the description curr_description = description[:description.find("\n")] - max_width = colwidths[0] max_height = self.stylesheet['Normal'].leading + cellpadding = 6 # default cellpadding is only set on right side of column + max_width = colwidths[0] - cellpadding p_style = self.stylesheet['Normal'] while True: p = FontFallbackParagraph( @@ -787,8 +788,8 @@ 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_height = 0.2 * doc.height + max_width = sum(colwidths[0:3 if has_taxes else 2]) - cellpadding p_style = self.stylesheet['Fineprint'] continue