diff --git a/ivy_lint/formatters/docs_formatter.py b/ivy_lint/formatters/docs_formatter.py index 7dc91ac..8ced7ce 100644 --- a/ivy_lint/formatters/docs_formatter.py +++ b/ivy_lint/formatters/docs_formatter.py @@ -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