From bf415a6b02beb177324398081866608139888de7 Mon Sep 17 00:00:00 2001 From: Richard Schreiber Date: Thu, 16 Oct 2025 16:16:43 +0200 Subject: [PATCH] remove inner-padding from description-rows --- src/pretix/base/invoicing/pdf.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/pretix/base/invoicing/pdf.py b/src/pretix/base/invoicing/pdf.py index 4e4af8ab02..c709f2e455 100644 --- a/src/pretix/base/invoicing/pdf.py +++ b/src/pretix/base/invoicing/pdf.py @@ -905,6 +905,21 @@ class ClassicInvoiceRenderer(BaseReportlabInvoiceRenderer): )) for p in description_p_list: tdata.append((p, "", "")) + + tstyledata += [ + ( + 'BOTTOMPADDING', + (0, len(tdata) - len(description_p_list) - 1), + (-1, len(tdata) - 2), + 0 + ), + ( + 'TOPPADDING', + (0, len(tdata) - len(description_p_list)), + (-1, len(tdata) - 1), + 0 + ), + ] taxvalue_map[tax_rate, tax_name] += (gross_value - net_value) * len(lines) grossvalue_map[tax_rate, tax_name] += gross_value * len(lines) total += gross_value * len(lines)