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 48ed776 commit a68e93b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ivy_lint/formatters/docs_formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ 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 formatted_lines[-1].strip().startswith("-"):
if not formatted_lines[-1].strip().startswith("-"):
skip = False
elif skip:
skip = False
Expand Down

0 comments on commit a68e93b

Please sign in to comment.