mirror of https://gitlab.com/bashrc2/epicyon
Remove spaces
parent
799c3c9543
commit
2b4218f4bc
|
@ -453,7 +453,7 @@ def _showLocalBox(notifyJson: {}, boxName: str,
|
|||
posStr += ' '
|
||||
if speakerJson.get('name'):
|
||||
udata = speakerJson['name']
|
||||
name = strip(udata.encode("ascii", "ignore").decode())
|
||||
name = udata.encode("ascii", "ignore").decode().strip()
|
||||
else:
|
||||
name = ''
|
||||
if len(name) > 16:
|
||||
|
@ -462,7 +462,7 @@ def _showLocalBox(notifyJson: {}, boxName: str,
|
|||
while len(name) < 16:
|
||||
name += ' '
|
||||
udata = speakerJson['content']
|
||||
content = strip(udata.encode("ascii","ignore").decode())
|
||||
content = udata.encode("ascii","ignore").decode().strip()
|
||||
if speakerJson.get('detectedLinks'):
|
||||
if len(speakerJson['detectedLinks']) > 0:
|
||||
content = '🔗' + content
|
||||
|
|
Loading…
Reference in New Issue