mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +00:00
Bug fix
This commit is contained in:
parent
14c6fdc1d9
commit
0692afdfec
1 changed files with 1 additions and 1 deletions
|
@ -131,7 +131,7 @@ def get_indent(code_lines: list[str], line_number: int) -> str:
|
|||
"""
|
||||
# Find most recent non-empty line
|
||||
try:
|
||||
next(filter(lambda line: line.strip(), code_lines[line_number - 1::-1]))
|
||||
line = next(filter(lambda line: line.strip(), code_lines[line_number - 1::-1]))
|
||||
except StopIteration:
|
||||
return ""
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue