Revert "enable long_docstring_quotes_on_newline"

This reverts commit bce883b4d8.
This commit is contained in:
Jelle Zijlstra 2022-12-17 19:19:34 -08:00
parent 4842546862
commit 4acf3358a1
2 changed files with 2 additions and 1 deletions

View File

@ -393,7 +393,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 quote_len == 3:
if Preview.long_docstring_quotes_on_newline in self.mode and 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.

View File

@ -150,6 +150,7 @@ class Preview(Enum):
"""Individual preview style features."""
prefer_splitting_right_hand_side_of_assignments = 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()