mirror of
https://github.com/pretix/pretix.git
synced 2026-05-09 15:54:03 +00:00
Invoice: Add spacer before optional intro text (#5297)
This commit is contained in:
@@ -639,11 +639,16 @@ class ClassicInvoiceRenderer(BaseReportlabInvoiceRenderer):
|
|||||||
))
|
))
|
||||||
|
|
||||||
if self.invoice.introductory_text:
|
if self.invoice.introductory_text:
|
||||||
|
# While all intro fields are appended without any blank lines; we do want one before the optional intro
|
||||||
|
# text. However, if there are no prior intro fields, adding an additional spacer will waste space.
|
||||||
|
if story:
|
||||||
|
story.append(Spacer(1, 5 * mm))
|
||||||
|
|
||||||
story.append(Paragraph(
|
story.append(Paragraph(
|
||||||
self._clean_text(self.invoice.introductory_text, tags=['br']),
|
self._clean_text(self.invoice.introductory_text, tags=['br']),
|
||||||
self.stylesheet['Normal']
|
self.stylesheet['Normal']
|
||||||
))
|
))
|
||||||
story.append(Spacer(1, 10 * mm))
|
story.append(Spacer(1, 5 * mm))
|
||||||
|
|
||||||
return story
|
return story
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user