markdown-textwrap

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

commit dedc4537dabc7188e508d7b43f4d9593754c49eb
parent b11ad48934ead29ba421216f83be32cc8cb6e373
Author: rsiddharth <s@ricketyspace.net>
Date:   Sun,  1 Apr 2018 06:59:26 +0000

md_tw.py: Update TWMarkdown.output_list_item.

Fix initial indent lstripping.

* md_tw.py (TWMarkdown.output_list_item): Update method.

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

diff --git a/md_tw.py b/md_tw.py @@ -462,7 +462,7 @@ class TWMarkdown(mistune.Markdown): txt = self.tok() if rm_i_indent: - txt = txt.lstrip() + txt = txt.lstrip(self.renderer.tw_get('initial_indent')) # Don't remove initial indent after processing first item. rm_i_indent = False