diff options
| author | ryanss | 2015-01-14 23:59:00 -0500 |
|---|---|---|
| committer | ryanss | 2015-01-14 23:59:00 -0500 |
| commit | eec0cfbcc481846fdcaebdd457e50303b019b514 (patch) | |
| tree | 6c4928b845e12bd4664811bc80aede636c17680c | |
| parent | ab93fdadfabc4f788bdbe73add50122226d9fda8 (diff) | |
| download | vim-hn-eec0cfbcc481846fdcaebdd457e50303b019b514.tar.gz | |
Add blank line between comment paragraphs
| -rw-r--r-- | plugin/hackernews.py | 3 |
1 files changed, 2 insertions, 1 deletions
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) |
