diff options
author | rsiddharth <s@ricketyspace.net> | 2018-03-05 02:26:47 +0000 |
---|---|---|
committer | rsiddharth <s@ricketyspace.net> | 2018-03-05 02:26:47 +0000 |
commit | 7af05c6ae99e064dd80b91e3fbb90a670dff891b (patch) | |
tree | 96fdcac125cba48835393e5a1214aafced9edf41 | |
parent | 2bdf2a10665fd232677c0cea5fce3b1d3613cafd (diff) |
md_tw.py: Update TWRenderer.paragraph.
* md_tw.py (TWRenderer)[paragraph]: Update method.
-rw-r--r-- | md_tw.py | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -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 |