From ce1b7afe62b70c7e7c45c20ca9d96a3e6d6e8a89 Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Sun, 1 Apr 2018 06:53:17 +0000 Subject: md_tw.py: TWRenderer.paragraph. Don't append rstripped prefix. The rstripped prefix was appended before to render paragraphs correctly inside a blockquote. The blockquote rendering was updated to handle this; therefore paragraph rendering should not concern itself with this now. * md_tw.py (TWRenderer.paragraph): Update method. --- md_tw.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/md_tw.py b/md_tw.py index 0ed992e..c144eae 100644 --- a/md_tw.py +++ b/md_tw.py @@ -297,7 +297,7 @@ class TWRenderer(mistune.Renderer): def paragraph(self, text): out = self.tw_fill(text) - out = '{}\n{}\n'.format(out, self.tw_get('initial_indent').rstrip()) + out = '{}\n\n'.format(out) return out -- cgit v1.2.3