Strip trailing ":" off field names for consistency
Some servers add them, some don't. This makes the names consistent before adding one trailing :
This commit is contained in:
parent
5943ebda3a
commit
de7abd0b68
1 changed files with 1 additions and 1 deletions
|
@ -258,7 +258,7 @@ class Account(urwid.ListBox):
|
||||||
for field in account["fields"]:
|
for field in account["fields"]:
|
||||||
name = field["name"].title()
|
name = field["name"].title()
|
||||||
yield urwid.Divider()
|
yield urwid.Divider()
|
||||||
yield urwid.Text([("yellow", f"{name}"), (":")])
|
yield urwid.Text([("yellow", f"{name.rstrip(':')}"), (":")])
|
||||||
for line in format_content(field["value"]):
|
for line in format_content(field["value"]):
|
||||||
yield urwid.Text(highlight_hashtags(line, followed_tags=set()))
|
yield urwid.Text(highlight_hashtags(line, followed_tags=set()))
|
||||||
if field["verified_at"]:
|
if field["verified_at"]:
|
||||||
|
|
Loading…
Reference in a new issue