summaryrefslogtreecommitdiff
path: root/plugin/hackernews.py
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/hackernews.py')
-rw-r--r--plugin/hackernews.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugin/hackernews.py b/plugin/hackernews.py
index 357f6fd..ac680c0 100644
--- a/plugin/hackernews.py
+++ b/plugin/hackernews.py
@@ -41,7 +41,8 @@ def hacker_news_link():
b[0] = item['title']
b.append("Posted %s by %s" % (item['time_ago'], item['user']))
b.append("%d Points / %d Comments" % (item['points'], item['comments_count']))
- b.append("[%s]" % item['url'])
+ for i, wrap in enumerate(textwrap.wrap("[%s]" % item['url'], width=80)):
+ b.append(wrap)
b.append("")
b.append("")
print_comments(item['comments'], b)