Skip to content

Commit

Permalink
enable long_docstring_quotes_on_newline
Browse files Browse the repository at this point in the history
  • Loading branch information
JelleZijlstra committed Dec 17, 2022
1 parent 42624f4 commit bce883b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/black/linegen.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ def visit_STRING(self, leaf: Leaf) -> Iterator[Line]:
quote = quote_char * quote_len

# It's invalid to put closing single-character quotes on a new line.
if Preview.long_docstring_quotes_on_newline in self.mode and quote_len == 3:
if quote_len == 3:
# We need to find the length of the last line of the docstring
# to find if we can add the closing quotes to the line without
# exceeding the maximum line length.
Expand Down
1 change: 0 additions & 1 deletion src/black/mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ class Preview(Enum):
"""Individual preview style features."""

annotation_parens = auto()
long_docstring_quotes_on_newline = auto()
# NOTE: string_processing requires wrap_long_dict_values_in_parens
# for https://github.com/psf/black/issues/3117 to be fixed.
string_processing = auto()
Expand Down

0 comments on commit bce883b

Please sign in to comment.