This commit is contained in:
Grant Sanderson 2024-12-09 11:59:16 -06:00
parent 14c6fdc1d9
commit 0692afdfec

View file

@ -131,7 +131,7 @@ def get_indent(code_lines: list[str], line_number: int) -> str:
""" """
# Find most recent non-empty line # Find most recent non-empty line
try: 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: except StopIteration:
return "" return ""