markdown-textwrap

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

commit 61202ae9dccdc44f50388ab03b2318df8db05808
parent 446f2a2dfe7244d52483a239f402718b8ee94301
Author: rsiddharth <s@ricketyspace.net>
Date:   Sun, 18 Feb 2018 16:31:52 +0000

md_tw.py: Update TWRenderer.paragraph.

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

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

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