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:
parent
7b0b9ef2fc
commit
6510fa699e
@ -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"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user