forked from CGM_Public/pretix_original
Check-in list PDF: Proper word wrapping
This commit is contained in:
@@ -216,9 +216,9 @@ class PDFCheckinList(ReportlabExportMixin, BaseCheckinList):
|
|||||||
CBFlowable(bool(op.last_checked_in)),
|
CBFlowable(bool(op.last_checked_in)),
|
||||||
'✘' if op.order.status != Order.STATUS_PAID else '✔',
|
'✘' if op.order.status != Order.STATUS_PAID else '✔',
|
||||||
op.order.code,
|
op.order.code,
|
||||||
name,
|
Paragraph(name, self.get_style()),
|
||||||
str(op.item) + (" – " + str(op.variation.value) if op.variation else "") + "\n" +
|
Paragraph(str(op.item) + (" – " + str(op.variation.value) if op.variation else "") + "<br/>" +
|
||||||
money_filter(op.price, self.event.currency),
|
money_filter(op.price, self.event.currency), self.get_style()),
|
||||||
]
|
]
|
||||||
acache = {}
|
acache = {}
|
||||||
if op.addon_to:
|
if op.addon_to:
|
||||||
@@ -227,7 +227,7 @@ class PDFCheckinList(ReportlabExportMixin, BaseCheckinList):
|
|||||||
for a in op.answers.all():
|
for a in op.answers.all():
|
||||||
acache[a.question_id] = str(a)
|
acache[a.question_id] = str(a)
|
||||||
for q in questions:
|
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:
|
if op.order.status != Order.STATUS_PAID:
|
||||||
tstyledata += [
|
tstyledata += [
|
||||||
('BACKGROUND', (2, len(tdata)), (2, len(tdata)), '#990000'),
|
('BACKGROUND', (2, len(tdata)), (2, len(tdata)), '#990000'),
|
||||||
|
|||||||
Reference in New Issue
Block a user