From de33d6d44c8ba4c3e00097b750ad666ae6243462 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Fri, 10 Aug 2018 16:43:27 +0200 Subject: [PATCH] Check-in list PDF: Proper word wrapping --- src/pretix/plugins/checkinlists/exporters.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pretix/plugins/checkinlists/exporters.py b/src/pretix/plugins/checkinlists/exporters.py index e782a1ea8..5fadfd52c 100644 --- a/src/pretix/plugins/checkinlists/exporters.py +++ b/src/pretix/plugins/checkinlists/exporters.py @@ -216,9 +216,9 @@ class PDFCheckinList(ReportlabExportMixin, BaseCheckinList): CBFlowable(bool(op.last_checked_in)), '✘' if op.order.status != Order.STATUS_PAID else '✔', op.order.code, - name, - str(op.item) + (" – " + str(op.variation.value) if op.variation else "") + "\n" + - money_filter(op.price, self.event.currency), + Paragraph(name, self.get_style()), + Paragraph(str(op.item) + (" – " + str(op.variation.value) if op.variation else "") + "
" + + money_filter(op.price, self.event.currency), self.get_style()), ] acache = {} if op.addon_to: @@ -227,7 +227,7 @@ class PDFCheckinList(ReportlabExportMixin, BaseCheckinList): for a in op.answers.all(): acache[a.question_id] = str(a) for q in questions: - row.append(acache.get(q.pk, '')) + row.append(Paragraph(acache.get(q.pk, ''), self.get_style())) if op.order.status != Order.STATUS_PAID: tstyledata += [ ('BACKGROUND', (2, len(tdata)), (2, len(tdata)), '#990000'),