Skip to content

Commit

Permalink
Update docs_formatter.py
Browse files Browse the repository at this point in the history
  • Loading branch information
he11owthere authored Nov 29, 2023
1 parent 002f70b commit 1f582a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ivy_lint/formatters/docs_formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ def format_docstring(self, doc):
if stripped_line.startswith('>>>'):
if "(" in line:
is_codeblock_cont = True
if stripped_line.endswith(')'):
#if stripped_line.endswith(')'):
if ")" in line:
is_codeblock_cont = False
if not is_codeblock and stripped_line.startswith('>>>'):
is_codeblock = True
Expand Down

0 comments on commit 1f582a5

Please sign in to comment.