1
0
mirror of https://github.com/ihabunek/toot.git synced 2025-05-18 00:58:30 -04:00

Make output match existing master branch status rendering exactly

Top level widgets are separated by blank lines, but
The final blank line of the status is omitted. This exactly
matches existing status rendering in master, for statuses that
contain only the currently supported tags
This commit is contained in:
Dan Schwarz 2023-04-04 19:43:37 -04:00 committed by Ivan Habunek
parent 7b0b9ef2fc
commit 6510fa699e
No known key found for this signature in database
GPG Key ID: CDBD63C43A30BB95

View File

@ -34,7 +34,9 @@ class ContentParser:
min_width=None,
)
widgets.append(markup)
return widgets
# separate top level widgets with a blank line
widgets.append(urwid.Divider(" "))
return widgets[:-1] # but suppress the last blank line
def inline_tag_to_text(self, tag) -> list:
"""Convert html tag to plain text with tag as attributes recursively"""