소스 검색

fix put_markdown bug

wangweimin 5 년 전
부모
커밋
8204fefb16
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      pywebio/output.py

+ 1 - 1
pywebio/output.py

@@ -80,7 +80,7 @@ def put_markdown(mdcontent, strip_indent=0, lstrip=False):
     """
     if strip_indent:
         lines = (
-            i[:strip_indent] if (i[:strip_indent] == ' ' * strip_indent) else i
+            i[strip_indent:] if (i[:strip_indent] == ' ' * strip_indent) else i
             for i in mdcontent.splitlines()
         )
         mdcontent = '\n'.join(lines)