From 661d35675a87fb7cca59be4d7ff82ff3ca93f25d Mon Sep 17 00:00:00 2001 From: Ivan Habunek Date: Sun, 7 May 2017 10:42:31 +0200 Subject: [PATCH] Nicer account output --- toot/commands.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/toot/commands.py b/toot/commands.py index 8db7d14..18d56a5 100644 --- a/toot/commands.py +++ b/toot/commands.py @@ -288,10 +288,11 @@ def _find_account(app, user, account_name): def _print_account(account): print("{} {}".format(green("@" + account['acct']), account['display_name'])) - if account['note']: + note = BeautifulSoup(account['note'], "html.parser").get_text() + + if note: print("") - note = BeautifulSoup(account['note'], "html.parser") - print("\n".join(wrap(note.get_text()))) + print("\n".join(wrap(note))) print("") print("ID: " + green(account['id']))