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:
parent
5943ebda3a
commit
de7abd0b68
@ -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"]:
|
||||
|
Loading…
Reference in New Issue
Block a user