Nicer account output

pull/31/head
Ivan Habunek 2017-05-07 10:42:31 +02:00
rodzic 6766cf83b4
commit 661d35675a
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: CDBD63C43A30BB95
1 zmienionych plików z 4 dodań i 3 usunięć

Wyświetl plik

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