mirror of https://gitlab.com/bashrc2/epicyon
Truncation
parent
8c591ee55e
commit
1f65c33f60
|
@ -455,16 +455,20 @@ def _showLocalBox(notifyJson: {}, boxName: str,
|
||||||
name = speakerJson['name']
|
name = speakerJson['name']
|
||||||
else:
|
else:
|
||||||
name = ''
|
name = ''
|
||||||
name = (name[:14]) if len(name) > 14 else name
|
if len(name) > 16:
|
||||||
while len(name) < 16:
|
name = name[:16]
|
||||||
name += ' '
|
else:
|
||||||
|
while len(name) < 16:
|
||||||
|
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[:38]) if len(content) > 38 else content
|
if len(content) > 40:
|
||||||
while len(content) < 40:
|
content = content[:40]
|
||||||
content += ' '
|
else:
|
||||||
|
while len(content) < 40:
|
||||||
|
content += ' '
|
||||||
print(indent + str(posStr) + ' | ' + name + ' | ' +
|
print(indent + str(posStr) + ' | ' + name + ' | ' +
|
||||||
published + ' | ' + content + ' |')
|
published + ' | ' + content + ' |')
|
||||||
ctr += 1
|
ctr += 1
|
||||||
|
|
Loading…
Reference in New Issue