From dedc4537dabc7188e508d7b43f4d9593754c49eb Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Sun, 1 Apr 2018 06:59:26 +0000 Subject: md_tw.py: Update TWMarkdown.output_list_item. Fix initial indent lstripping. * md_tw.py (TWMarkdown.output_list_item): Update method. --- md_tw.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/md_tw.py b/md_tw.py index 9f0c720..8b3c7a8 100644 --- 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 -- cgit v1.2.3