From 374bdbc548df47d08f36bde4c92de888f1e33c97 Mon Sep 17 00:00:00 2001 From: Ryan Hitchman Date: Fri, 24 Jul 2015 13:30:17 -0700 Subject: [PATCH] hackernews: represent

with // --- plugins/hackernews.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/hackernews.py b/plugins/hackernews.py index 0ac7b6b..225e2cb 100644 --- a/plugins/hackernews.py +++ b/plugins/hackernews.py @@ -13,7 +13,7 @@ def hackernews(match): return u"{title} by {by} with {score} points and {descendants} comments ({url})".format(**entry) if entry['type'] == "comment": - entry['text'] = http.unescape(entry['text']) + entry['text'] = http.unescape(entry['text'].replace('

', ' // ')) return u'"{text}" -- {by}'.format(**entry) class Test(unittest.TestCase):