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:
Daniel Schwarz 2023-02-02 20:37:12 -05:00 committed by Ivan Habunek
parent 5943ebda3a
commit de7abd0b68
1 changed files with 1 additions and 1 deletions

View File

@ -258,7 +258,7 @@ class Account(urwid.ListBox):
for field in account["fields"]:
name = field["name"].title()
yield urwid.Divider()
yield urwid.Text([("yellow", f"{name}"), (":")])
yield urwid.Text([("yellow", f"{name.rstrip(':')}"), (":")])
for line in format_content(field["value"]):
yield urwid.Text(highlight_hashtags(line, followed_tags=set()))
if field["verified_at"]: