1
0
mirror of https://github.com/ihabunek/toot.git synced 2024-11-03 04:17:21 -05:00

Nicer account output

This commit is contained in:
Ivan Habunek 2017-05-07 10:42:31 +02:00
parent 6766cf83b4
commit 661d35675a
No known key found for this signature in database
GPG Key ID: CDBD63C43A30BB95

View File

@ -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']))