From eec0cfbcc481846fdcaebdd457e50303b019b514 Mon Sep 17 00:00:00 2001 From: ryanss Date: Wed, 14 Jan 2015 23:59:00 -0500 Subject: Add blank line between comment paragraphs --- plugin/hackernews.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin/hackernews.py b/plugin/hackernews.py index 0126eb0..b27be67 100644 --- a/plugin/hackernews.py +++ b/plugin/hackernews.py @@ -35,7 +35,6 @@ def hacker_news_link(): vim.command("edit .hackernews") b = vim.current.buffer content = urllib2.urlopen("http://fuckyeahmarkdown.com/go/?read=1&u="+m.group(1)).read() - #content = html.unescape(html) for i, line in enumerate(content.split('\n')): if not line: b.append("") @@ -95,5 +94,7 @@ def print_comments(comments, b): subsequent_indent=" "*4*level) for line in contents: b.append(line) + if contents: + b.append("") b.append("") print_comments(comment['comments'], b) -- cgit v1.2.3