mirror of
https://github.com/ihabunek/toot.git
synced 2024-09-29 04:35:54 -04:00
Wrap URLs if needed
This commit is contained in:
parent
e829ce2714
commit
d8fd8d0d56
@ -191,8 +191,11 @@ class StatusDetailWindow:
|
||||
yield line
|
||||
|
||||
def footer_lines(self, status):
|
||||
text_width = self.width - 4
|
||||
|
||||
if status['url'] is not None:
|
||||
yield status['url']
|
||||
for line in wrap(status['url'], text_width):
|
||||
yield line
|
||||
|
||||
if status['boosted_by']:
|
||||
acct = status['boosted_by']['acct']
|
||||
|
Loading…
Reference in New Issue
Block a user