Make description line less short

This commit is contained in:
Huy Ngo 2024-07-19 10:30:12 +07:00
parent a743718951
commit 6048e49d56

View file

@ -309,9 +309,11 @@ def print_status(status: Status, width: int = 80):
print_out("\nMedia:")
for count, attachment in enumerate(status.media_attachments):
url = attachment.url
description = f'<yellow>Description</yellow>: {attachment.description}'
description = f'Description: {attachment.description}'
print_out(f'{count+1}. URL: {url}')
for line in wc_wrap(description, width):
for i, line in enumerate(wc_wrap(description, width)):
if i == 0:
line.replace('Description', '<yellow>Description</yellow>')
print_out(line)
if status.poll: