remove_block_trailing_newline
This commit is contained in:
parent
fc2acb2ed5
commit
ecfa7b6019
@ -590,11 +590,7 @@ def _maybe_empty_lines(self, current_line: Line) -> Tuple[int, int]:
|
|||||||
):
|
):
|
||||||
return before, 1
|
return before, 1
|
||||||
|
|
||||||
if (
|
if self.previous_line and self.previous_line.opens_block:
|
||||||
Preview.remove_block_trailing_newline in current_line.mode
|
|
||||||
and self.previous_line
|
|
||||||
and self.previous_line.opens_block
|
|
||||||
):
|
|
||||||
return 0, 0
|
return 0, 0
|
||||||
return before, 0
|
return before, 0
|
||||||
|
|
||||||
|
@ -150,7 +150,6 @@ class Preview(Enum):
|
|||||||
"""Individual preview style features."""
|
"""Individual preview style features."""
|
||||||
|
|
||||||
long_docstring_quotes_on_newline = auto()
|
long_docstring_quotes_on_newline = auto()
|
||||||
remove_block_trailing_newline = auto()
|
|
||||||
remove_redundant_parens = auto()
|
remove_redundant_parens = auto()
|
||||||
string_processing = auto()
|
string_processing = auto()
|
||||||
skip_magic_trailing_comma_in_subscript = auto()
|
skip_magic_trailing_comma_in_subscript = auto()
|
||||||
|
Loading…
Reference in New Issue
Block a user