浏览代码

fixed code blocks

Rodja Trappe 2 年之前
父节点
当前提交
6ff4e0ddd3
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      website/example.py

+ 2 - 2
website/example.py

@@ -34,9 +34,9 @@ class example:
 
             with ui.row().classes('items-stretch max-w-screen-lg'):
                 code = inspect.getsource(f).splitlines()
-                while not code[0].startswith(' ' * 8):
+                while not code[0].startswith(' ' * 12):
                     del code[0]
-                code = [l[8:] for l in code]
+                code = [l[12:] for l in code]
                 while code[0].startswith('global '):
                     del code[0]
                 code.insert(0, '```python')