mirror of https://gitlab.com/bashrc2/epicyon
Truncation
parent
f3d52442ab
commit
0ab49c28d4
|
@ -457,14 +457,14 @@ def _showLocalBox(notifyJson: {}, boxName: str,
|
|||
name = ''
|
||||
while len(name) < 16:
|
||||
name += ' '
|
||||
name = (name[:16]) if len(name) > 16 else name
|
||||
name = (name[:16]) if len(name) >= 16 else name
|
||||
content = speakerJson['content']
|
||||
while len(content) < 40:
|
||||
content += ' '
|
||||
if speakerJson.get('detectedLinks'):
|
||||
if len(speakerJson['detectedLinks']) > 0:
|
||||
content = '🔗' + content
|
||||
content = (content[:40]) if len(content) > 40 else content
|
||||
content = (content[:40]) if len(content) >= 40 else content
|
||||
print(indent + str(posStr) + ' | ' + str(name) + ' | ' +
|
||||
str(published) + ' | ' + str(content) + ' |')
|
||||
ctr += 1
|
||||
|
|
Loading…
Reference in New Issue