markdown-textwrap

text wrap markdown documents
git clone git://git.ricketyspace.net/markdown-textwrap.git
Log | Files | Refs

commit 887652565943937a92e9d658c390ac34d3d25637
parent a93933cf0aee57ed96ca68420cd2d569aff7ea5e
Author: rsiddharth <s@ricketyspace.net>
Date:   Sun, 18 Feb 2018 19:24:07 +0000

md_tw.py: Update TWRenderer.paragraph.

* md_tw.py (TWRenderer)[paragraph]: Update method.

Diffstat:
md_tw.py | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/md_tw.py b/md_tw.py @@ -263,9 +263,9 @@ class TWRenderer(mistune.Renderer): return out def paragraph(self, text): - wrapped = self._tw_fill(text) - - return '{}\n\n'.format(wrapped) + out = self._tw_fill(text) + out = '{}\n{}\n'.format(out, self.tw_get('initial_indent').strip()) + return out class TWMarkdown(mistune.Markdown):