From de7abd0b68806c681f6ae6d1f6cd16c444363196 Mon Sep 17 00:00:00 2001 From: Daniel Schwarz Date: Thu, 2 Feb 2023 20:37:12 -0500 Subject: [PATCH] Strip trailing ":" off field names for consistency Some servers add them, some don't. This makes the names consistent before adding one trailing : --- toot/tui/overlays.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toot/tui/overlays.py b/toot/tui/overlays.py index c69d657..2b65676 100644 --- a/toot/tui/overlays.py +++ b/toot/tui/overlays.py @@ -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"]: