diff --git a/hn.py b/hn.py index 15edb74..c4a6a48 100755 --- a/hn.py +++ b/hn.py @@ -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