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