diff --git a/core/errors.py b/core/errors.py index e94069f..64d1091 100755 --- a/core/errors.py +++ b/core/errors.py @@ -35,7 +35,7 @@ def string_with_arrows(text: str, pos_start: Position, pos_end: Position) -> str # Append to result line_text = f"{line[:col_start_color]}{Log.deep_error(line[col_start_color:col_end_color], bold=True)}{line[col_end_color:]}\n" - lstripped_len = len(line_text) - len(line_text.lstrip()) - 1 + lstripped_len = len(line_text) - len(line_text.lstrip()) result += line_text.lstrip() result += " " * (col_start - lstripped_len) + Log.deep_error("^" * (col_end - col_start), bold=True)