Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Col0ring committed Nov 4, 2024
1 parent b423d9d commit a0176a5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions docs/helper/Docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,12 @@ def _render_demo(self, demo_name, prefix='', suffix='', fixed=False):
with antd.Row(align="stretch", wrap=False):
with antd.Col(span=10):
with antd.Flex(elem_style=dict(height='100%')):
gr.Markdown(
f"""{prefix + "\n" if prefix else ""}```python
prefix = prefix + "\n" if prefix else ""
suffix = "\n" + suffix if suffix else ""
gr.Markdown(f"""{prefix}```python
{content}
```{"\n" + suffix if suffix else ""}""",
header_links=True)
```{suffix}""",
header_links=True)
antd.Divider(type="vertical",
variant="dashed",
elem_style=dict(height='100%'))
Expand Down

0 comments on commit a0176a5

Please sign in to comment.