1
0
Fork 0
mirror of https://github.com/Kunsi/pretalx-plugin-broadcast-tools synced 2024-11-24 10:01:02 +00:00

minor style fixes

This commit is contained in:
Franzi 2022-11-07 04:00:54 +01:00
parent bfbce9e98b
commit eb142b2483
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -71,14 +71,13 @@ class PDFInfoPage(Flowable):
self.canv, A4_WIDTH - 3 * PAGE_PADDING, A4_HEIGHT - 2 * PAGE_PADDING self.canv, A4_WIDTH - 3 * PAGE_PADDING, A4_HEIGHT - 2 * PAGE_PADDING
) )
self.y_position += height + 2 * mm self.y_position += height + 2 * mm
item.drawOn(self.canv, 2*PAGE_PADDING, -self.y_position) item.drawOn(self.canv, 2 * PAGE_PADDING, -self.y_position)
def _space(self): def _space(self):
self._add(Spacer(1, PAGE_PADDING / 2)) self._add(Spacer(1, PAGE_PADDING / 2))
def draw(self): def draw(self):
# add Submission code, type, title and "do not record" # add some information horizontally to the side of the page
# horizontally to the side of the page.
self.canv.saveState() self.canv.saveState()
self.canv.rotate(90) self.canv.rotate(90)
self.canv.setFont("Helvetica", 12) self.canv.setFont("Helvetica", 12)
@ -93,7 +92,7 @@ class PDFInfoPage(Flowable):
self.talk.local_start.isoformat(), self.talk.local_start.isoformat(),
f"Day {self.day['index']}", f"Day {self.day['index']}",
str(self.room["name"]), str(self.room["name"]),
self.schedule.version, f"Schedule {self.schedule.version}",
], ],
), ),
) )
@ -210,7 +209,7 @@ class PDFInfoPage(Flowable):
class PDFExporter(ScheduleData): class PDFExporter(ScheduleData):
identifier = "broadcast_pdf" identifier = "broadcast_pdf"
verbose_name = "Broadcast Tools PDF (with internal notes)" verbose_name = "Broadcast Tools PDF"
public = False public = False
show_qrcode = False show_qrcode = False
icon = "fa-file-pdf" icon = "fa-file-pdf"