Strip extra newlines from status text output

This allows us to pass existing test_console.py tests
This commit is contained in:
Daniel Schwarz 2023-05-25 20:03:36 -04:00
parent 2563f42efc
commit 5c00edba3f
1 changed files with 2 additions and 2 deletions

View File

@ -278,8 +278,8 @@ def print_status(status, width):
h2t.wrap_list_items = True
h2t.wrap_tables = True
h2t.ul_item_mark = "\N{bullet}"
text_status = h2t.handle(content)
text_status = h2t.handle(content).strip()
media_attachments = reblog['media_attachments'] if reblog else status['media_attachments']
in_reply_to = status['in_reply_to_id']