We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 61b529b commit ce28be2Copy full SHA for ce28be2
src/black/lines.py
@@ -851,7 +851,7 @@ def is_line_short_enough( # noqa: C901
851
if not line_str:
852
line_str = line_to_string(line)
853
854
- width = str_width if mode.preview else len
+ width = str_width if Preview.respect_east_asian_width in mode else len
855
856
if Preview.multiline_string_handling not in mode:
857
return (
src/black/mode.py
@@ -195,6 +195,7 @@ class Preview(Enum):
195
single_line_format_skip_with_multiple_comments = auto()
196
long_case_block_line_splitting = auto()
197
allow_form_feeds = auto()
198
+ respect_east_asian_width = auto()
199
200
201
class Deprecated(UserWarning):
0 commit comments