From b2d38b3d057a4ecb6e739d2b745e92b6867f09f3 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 12 Mar 2021 18:20:56 +0000 Subject: [PATCH] No additional chars --- notifications_client.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/notifications_client.py b/notifications_client.py index a6688c304..473bab701 100644 --- a/notifications_client.py +++ b/notifications_client.py @@ -304,17 +304,17 @@ def _showLocalBox(boxName: str, startPostIndex=0, noOfPosts=10) -> None: continue published = speakerJson['published'].replace('T', ' ') posStr = str(pos) + '.' - while len(posStr) < 4: + while len(posStr) < 3: posStr += ' ' if speakerJson.get('name'): name = speakerJson['name'] else: name = '' - name = (name[:16] + '..') if len(name) > 16 else name + name = (name[:16]) if len(name) > 16 else name while len(name) < 16: name += ' ' content = speakerJson['content'] - content = (content[:40] + '..') if len(content) > 40 else content + content = (content[:40]) if len(content) > 40 else content print(str(posStr) + ' | ' + str(name) + ' | ' + str(published) + ' | ' + str(content) + ' |') print('')