hackernews: represent <p> with //

This commit is contained in:
Ryan Hitchman 2015-07-24 13:30:17 -07:00
parent 7eff869123
commit 374bdbc548
1 changed files with 1 additions and 1 deletions

View File

@ -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('<p>', ' // '))
return u'"{text}" -- {by}'.format(**entry)
class Test(unittest.TestCase):