Skip to content

Commit

Permalink
Test single newline after multiline docstring - ignore failing tests atm
Browse files Browse the repository at this point in the history
  • Loading branch information
jpy-git committed Apr 5, 2022
1 parent 49c16c9 commit a973c88
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/black/lines.py
Expand Up @@ -450,11 +450,7 @@ def maybe_empty_lines(self, current_line: Line) -> int:
and len(self.previous_lines) == 1
and self.previous_lines[-1].is_triple_quoted_string
):
# Newlines after multi-line module level docstring.
if str(self.previous_lines[-1].leaves[0]).count("\n") >= 1:
before = 0
else:
before = 1
before = 1

self.previous_lines.append(current_line)
return before
Expand Down

0 comments on commit a973c88

Please sign in to comment.