Strip unrenderable unicode sequences in info box
This commit is contained in:
parent
d3ddfd6c9c
commit
b4c656770f
1 changed files with 1 additions and 1 deletions
|
|
@ -85,7 +85,7 @@ class AnnounceInfo(urwid.WidgetWrap):
|
||||||
type_string = "Peer " + g["peer"]
|
type_string = "Peer " + g["peer"]
|
||||||
|
|
||||||
try:
|
try:
|
||||||
data_str = announce[2].decode("utf-8")
|
data_str = strip_modifiers(announce[2].decode("utf-8"))
|
||||||
data_style = ""
|
data_style = ""
|
||||||
if trust_level != DirectoryEntry.TRUSTED and len(data_str) > 32:
|
if trust_level != DirectoryEntry.TRUSTED and len(data_str) > 32:
|
||||||
data_str = data_str[:32]+" [...]"
|
data_str = data_str[:32]+" [...]"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue