markdown-textwrap

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

commit ce1b7afe62b70c7e7c45c20ca9d96a3e6d6e8a89
parent bb09de93520ec43b23b70c99c1f5439a16cb255e
Author: rsiddharth <s@ricketyspace.net>
Date:   Sun,  1 Apr 2018 06:53:17 +0000

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.

Diffstat:
md_tw.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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