3 4ths instead of 2 3rds

master
Felix Pankratz 1 year ago
parent 82c16051db
commit f6b7a4cd8c

@ -57,7 +57,7 @@ class Client:
# calculate length of line
text = f'{prefix} ()\n'
chars_available = self.cols - len(text)
max_title_len = min((chars_available//3)*2, len(story.title))
max_title_len = min((chars_available//4)*3, len(story.title))
max_url_len = chars_available - max_title_len
title = story.title[:max_title_len-1] + "" if len(story.title) > max_title_len else story.title

Loading…
Cancel
Save