From 7af05c6ae99e064dd80b91e3fbb90a670dff891b Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Mon, 5 Mar 2018 02:26:47 +0000 Subject: md_tw.py: Update TWRenderer.paragraph. * md_tw.py (TWRenderer)[paragraph]: Update method. --- md_tw.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/md_tw.py b/md_tw.py index 5b6ac93..b98c732 100644 --- a/md_tw.py +++ b/md_tw.py @@ -286,11 +286,6 @@ class TWRenderer(mistune.Renderer): out = '{}'.format(hr) return out - def paragraph(self, text): - out = self.tw_fill(text) - out = '{}\n{}\n'.format(out, self.tw_get('initial_indent').strip()) - return out - def list(self, body, ordered=True): out = '{}\n\n\n'.format(body.rstrip()) return out @@ -299,6 +294,12 @@ class TWRenderer(mistune.Renderer): out = '{}\n'.format(text) return out + def paragraph(self, text): + out = self.tw_fill(text) + out = '{}\n{}\n'.format(out, self.tw_get('initial_indent').rstrip()) + + return out + def def_link(self, text): out = '{}'.format(text) return out -- cgit v1.2.3