1
0
mirror of https://github.com/ihabunek/toot synced 2024-12-23 23:52:40 +01:00

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

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"]: