mirror of
https://github.com/python/cpython.git
synced 2025-07-09 20:35:26 +00:00
Issue #25677: Correct syntax error caret for indented blocks.
Based on patch by Michael Layzell.
This commit is contained in:
parent
b94eef2ae3
commit
ca3263c50c
5 changed files with 39 additions and 5 deletions
|
@ -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--;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue