mirror of https://github.com/Textualize/rich.git
Remove unused index statements
This commit is contained in:
parent
9ca660bd13
commit
d2d6f72413
|
@ -148,7 +148,6 @@ class Lines:
|
||||||
num_spaces += 1
|
num_spaces += 1
|
||||||
index = (index + 1) % len(spaces)
|
index = (index + 1) % len(spaces)
|
||||||
tokens: List[Text] = []
|
tokens: List[Text] = []
|
||||||
index = 0
|
|
||||||
for index, (word, next_word) in enumerate(
|
for index, (word, next_word) in enumerate(
|
||||||
zip_longest(words, words[1:])
|
zip_longest(words, words[1:])
|
||||||
):
|
):
|
||||||
|
@ -161,5 +160,4 @@ class Lines:
|
||||||
next_style = next_word.get_style_at_offset(console, 0)
|
next_style = next_word.get_style_at_offset(console, 0)
|
||||||
space_style = style if style == next_style else line.style
|
space_style = style if style == next_style else line.style
|
||||||
tokens.append(Text(" " * spaces[index], style=space_style))
|
tokens.append(Text(" " * spaces[index], style=space_style))
|
||||||
index += 1
|
|
||||||
self[line_index] = Text("").join(tokens)
|
self[line_index] = Text("").join(tokens)
|
||||||
|
|
Loading…
Reference in New Issue