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 ce0b255 commit 48ed776
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ivy_lint/formatters/docs_formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ def format_docstring(self, doc):
lb = lb - rb
rb = 0
is_codeblock_cont = True

if not stripped_line.startswith(('>>>', '...')):
lines_to_modify.add(idx)

Expand All @@ -51,7 +50,9 @@ def format_docstring(self, doc):
indentation = 0
for idx, line in enumerate(lines):
if idx in codeblock_start_lines and formatted_lines and formatted_lines[-1].strip(): # Insert blank line before code block
if skip:
if formatted_lines[-1].strip().startswith("-"):
skip = False
elif skip:
skip = False
formatted_lines.append(line)
continue
Expand Down

0 comments on commit 48ed776

Please sign in to comment.