From 168ba139dff7571e40d674d6bc12371f776b7e85 Mon Sep 17 00:00:00 2001 From: Bhushan Srivastava <59949692+he11owthere@users.noreply.github.com> Date: Wed, 29 Nov 2023 06:05:37 +0530 Subject: [PATCH] Update docs_formatter.py --- ivy_lint/formatters/docs_formatter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ivy_lint/formatters/docs_formatter.py b/ivy_lint/formatters/docs_formatter.py index ffa1fc9..580473c 100644 --- a/ivy_lint/formatters/docs_formatter.py +++ b/ivy_lint/formatters/docs_formatter.py @@ -45,7 +45,7 @@ def format_docstring(self, doc): if idx in lines_to_modify: formatted_lines.append(line) indentation = len(formatted_lines[-2]) - len(formatted_lines[-2].lstrip()) - formatted_lines[-1] = (indentation * ' ') + '...' + line[indentation+3:] + formatted_lines[-1] = (indentation * ' ') + '...' + line[indentation:] continue formatted_lines.append(line)