From cb8fdba915e4c1de5d824f4ccf412fe2895fde27 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 15 Mar 2021 19:20:32 +0000 Subject: [PATCH 1/2] No trailing vertical --- notifications_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notifications_client.py b/notifications_client.py index 8a8d7548a..dbdcba051 100644 --- a/notifications_client.py +++ b/notifications_client.py @@ -472,7 +472,7 @@ def _showLocalBox(notifyJson: {}, boxName: str, while len(content) < 40: content += ' ' print(indent + str(posStr) + ' | ' + name + ' | ' + - published + ' | ' + content + ' |') + published + ' | ' + content) ctr += 1 print('') From f82ee3bc6c1d4a8e7d04261508d414eed71f4b86 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 15 Mar 2021 19:21:10 +0000 Subject: [PATCH 2/2] Allow unicode within content --- notifications_client.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/notifications_client.py b/notifications_client.py index dbdcba051..48f243bc7 100644 --- a/notifications_client.py +++ b/notifications_client.py @@ -461,8 +461,7 @@ def _showLocalBox(notifyJson: {}, boxName: str, else: while len(name) < 16: name += ' ' - udata = speakerJson['content'] - content = udata.encode("ascii","ignore").decode().strip() + content = speakerJson['content'] if speakerJson.get('detectedLinks'): if len(speakerJson['detectedLinks']) > 0: content = '🔗' + content