From ca3263c50c3b3a3719d2ec3ee7b30b8c669dcb19 Mon Sep 17 00:00:00 2001 From: Martin Panter Date: Sun, 11 Dec 2016 00:18:36 +0000 Subject: Issue #25677: Correct syntax error caret for indented blocks. Based on patch by Michael Layzell. --- Python/pythonrun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/pythonrun.c') diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 72b6c9b060..90cb2de27c 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -528,7 +528,7 @@ print_error_text(PyObject *f, int offset, PyObject *text_obj) offset -= (int)(nl+1-text); text = nl+1; } - while (*text == ' ' || *text == '\t') { + while (*text == ' ' || *text == '\t' || *text == '\f') { text++; offset--; } -- cgit v1.2.1