Nicer account output
This commit is contained in:
parent
6766cf83b4
commit
661d35675a
1 changed files with 4 additions and 3 deletions
|
@ -288,10 +288,11 @@ def _find_account(app, user, account_name):
|
||||||
def _print_account(account):
|
def _print_account(account):
|
||||||
print("{} {}".format(green("@" + account['acct']), account['display_name']))
|
print("{} {}".format(green("@" + account['acct']), account['display_name']))
|
||||||
|
|
||||||
if account['note']:
|
note = BeautifulSoup(account['note'], "html.parser").get_text()
|
||||||
|
|
||||||
|
if note:
|
||||||
print("")
|
print("")
|
||||||
note = BeautifulSoup(account['note'], "html.parser")
|
print("\n".join(wrap(note)))
|
||||||
print("\n".join(wrap(note.get_text())))
|
|
||||||
|
|
||||||
print("")
|
print("")
|
||||||
print("ID: " + green(account['id']))
|
print("ID: " + green(account['id']))
|
||||||
|
|
Loading…
Reference in a new issue