summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2018-04-01 06:59:26 +0000
committerrsiddharth <s@ricketyspace.net>2018-04-01 06:59:26 +0000
commitdedc4537dabc7188e508d7b43f4d9593754c49eb (patch)
tree88f4f6e20ec4339f04685ea1d17c1d128df3e54c
parentb11ad48934ead29ba421216f83be32cc8cb6e373 (diff)
md_tw.py: Update TWMarkdown.output_list_item.
Fix initial indent lstripping. * md_tw.py (TWMarkdown.output_list_item): Update method.
-rw-r--r--md_tw.py2
1 files changed, 1 insertions, 1 deletions
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