mirror of
https://github.com/python/cpython.git
synced 2025-08-23 02:04:56 +00:00
Issue #25677: Merge SyntaxError caret positioning from 3.5
This commit is contained in:
commit
619555d77b
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