Message400738
I looked at the implementation. It's more complex than what I expected.
tb_displayline(): _Py_DisplaySourceLine() returns the source line with the indentation, but then it truncates the indentation.
extract_anchors_from_line() includes the indentation if I understand correctly.
There is also a special case for trailing spaces. Like this code path:
// If this is a multi-line expression, then we will highlight until
// the last non-whitespace character.
There is also a funny part about bytes vs Unicode vs UTF-8, that I don't get. |
|
Date |
User |
Action |
Args |
2021-08-31 14:26:18 | vstinner | set | recipients:
+ vstinner, lukasz.langa, pablogsal, BTaskaya |
2021-08-31 14:26:18 | vstinner | set | messageid: <1630419978.66.0.255576618171.issue45063@roundup.psfhosted.org> |
2021-08-31 14:26:18 | vstinner | link | issue45063 messages |
2021-08-31 14:26:18 | vstinner | create | |
|