From 15ab9c72d3894f7d388209d1d4b26cbe90daeb23 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Fri, 22 Oct 2021 13:10:48 +0200 Subject: [PATCH] Invoice renderer: Reduce a few spacings --- src/pretix/base/invoice.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/pretix/base/invoice.py b/src/pretix/base/invoice.py index 13d6fb46ae..abc2c75644 100644 --- a/src/pretix/base/invoice.py +++ b/src/pretix/base/invoice.py @@ -595,7 +595,7 @@ class ClassicInvoiceRenderer(BaseReportlabInvoiceRenderer): table.setStyle(TableStyle(tstyledata)) story.append(table) - story.append(Spacer(1, 15 * mm)) + story.append(Spacer(1, 10 * mm)) if self.invoice.payment_provider_text: story.append(Paragraph( @@ -611,12 +611,14 @@ class ClassicInvoiceRenderer(BaseReportlabInvoiceRenderer): self.invoice.additional_text, self.stylesheet['Normal'] )) - story.append(Spacer(1, 15 * mm)) + story.append(Spacer(1, 5 * mm)) tstyledata = [ ('ALIGN', (1, 0), (-1, -1), 'RIGHT'), ('LEFTPADDING', (0, 0), (0, -1), 0), ('RIGHTPADDING', (-1, 0), (-1, -1), 0), + ('TOPPADDING', (0, 0), (-1, -1), 1), + ('BOTTOMPADDING', (0, 0), (-1, -1), 1), ('FONTSIZE', (0, 0), (-1, -1), 8), ('FONTNAME', (0, 0), (-1, -1), self.font_regular), ]