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 a68e93b commit 33cd752
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ivy_lint/formatters/docs_formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ def format_docstring(self, doc):
elif is_codeblock and not is_codeblock_cont and (not stripped_line or (not stripped_line.startswith(('>>>', '...')))):
is_codeblock = False
if is_codeblock:
if stripped_line.startswith(('>>>')):
lb = rb = 0
lb += line.count('(')
rb += line.count(')')
if rb >= lb:
Expand Down

0 comments on commit 33cd752

Please sign in to comment.