From 1f582a559868ec59e6572424293f01870499d32a Mon Sep 17 00:00:00 2001 From: Bhushan Srivastava <59949692+he11owthere@users.noreply.github.com> Date: Wed, 29 Nov 2023 18:32:40 +0530 Subject: [PATCH] Update docs_formatter.py --- ivy_lint/formatters/docs_formatter.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ivy_lint/formatters/docs_formatter.py b/ivy_lint/formatters/docs_formatter.py index f00acc6..75f2895 100644 --- a/ivy_lint/formatters/docs_formatter.py +++ b/ivy_lint/formatters/docs_formatter.py @@ -29,7 +29,8 @@ def format_docstring(self, doc): if stripped_line.startswith('>>>'): if "(" in line: is_codeblock_cont = True - if stripped_line.endswith(')'): + #if stripped_line.endswith(')'): + if ")" in line: is_codeblock_cont = False if not is_codeblock and stripped_line.startswith('>>>'): is_codeblock = True