From ec2b44a135836dfafbdf3424a9bd7c939f3c1449 Mon Sep 17 00:00:00 2001 From: Brendan Howell Date: Thu, 3 Jan 2019 00:26:04 +0100 Subject: [PATCH] . --- screenless/bureau/publicrelations/publicrelations.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/screenless/bureau/publicrelations/publicrelations.py b/screenless/bureau/publicrelations/publicrelations.py index 5b7c47b..98b5836 100644 --- a/screenless/bureau/publicrelations/publicrelations.py +++ b/screenless/bureau/publicrelations/publicrelations.py @@ -334,10 +334,10 @@ class PublicRelations(Bureau): prn.set(text_type="NORMAL") for note in notifications: username = t.account.display_name.encode("cp437", "ignore") + \ - " (" + t.account.acct.encode("cp437", "ignore") + ")" - prn.text(note["type"] + " " + str(note["created_at"]) + " from " + - username + ":\r\n" + str(note.keys()) + - "\r\n") + b" (" + t.account.acct.encode("cp437", "ignore") + b")" + prn.text(note["type"] + " " + str(note["created_at"]) + " from ") + prn._raw(username) + prn.text(":\r\n" + str(note.keys()) + "\r\n") prn.text("\r\n\r\n") prn.cut()