Wrap URLs if needed
This commit is contained in:
parent
e829ce2714
commit
d8fd8d0d56
1 changed files with 4 additions and 1 deletions
|
@ -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 a new issue