Skip to content

Commit

Permalink
Strip trailing ":" off field names for consistency
Browse files Browse the repository at this point in the history
Some servers add them, some don't. This makes the names
consistent before adding one trailing :
  • Loading branch information
danschwarz authored and ihabunek committed Feb 3, 2023
1 parent 5943ebd commit de7abd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toot/tui/overlays.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ def link(text, url):
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"]:
Expand Down

0 comments on commit de7abd0

Please sign in to comment.