Skip to content

Commit 7ca473c

Browse files
committed
lint
1 parent bf2f505 commit 7ca473c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

wcwidth/textwrap.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ def _split(self, text: str) -> list[str]: # pylint: disable=too-many-locals
124124
# boundary, but *not* before hyperlink close sequences, to ensure hyperlink is
125125
# terminated on the same line.
126126
is_hyperlink_close = segment.startswith(('\x1b]8;;\x1b\\', '\x1b]8;;\x07'))
127-
if segment.startswith('\x1b]') and stripped_text and not stripped_text[-1].isspace():
127+
if (segment.startswith('\x1b]') and stripped_text and not
128+
stripped_text[-1].isspace()):
128129
if not is_hyperlink_close:
129130
stripped_text += ' '
130131
char_end.append(original_pos)

0 commit comments

Comments
 (0)