Coloring commited on
Commit
d8c513f
·
1 Parent(s): f18a2c3
Files changed (1) hide show
  1. helper/Docs.py +5 -4
helper/Docs.py CHANGED
@@ -102,12 +102,13 @@ class Docs:
102
  variant="dashed",
103
  elem_style=dict(width='100%',
104
  margin='8px 0 0'))
 
 
105
  with antd.Col(sm=23, xs=24):
106
- ms.Markdown(
107
- f"""{prefix + "\n" if prefix else ""}```python
108
  {content}
109
- ```{"\n" + suffix if suffix else ""}""",
110
- header_links=True)
111
 
112
  with antd.Col(sm=1,
113
  xs=0,
 
102
  variant="dashed",
103
  elem_style=dict(width='100%',
104
  margin='8px 0 0'))
105
+ resolved_prefix = prefix + "\n" if prefix else ""
106
+ resolved_suffix = suffix + "\n" if suffix else ""
107
  with antd.Col(sm=23, xs=24):
108
+ ms.Markdown(f"""{resolved_prefix}```python
 
109
  {content}
110
+ ```{resolved_suffix}""",
111
+ header_links=True)
112
 
113
  with antd.Col(sm=1,
114
  xs=0,