mirror of
https://github.com/python/cpython.git
synced 2025-10-31 21:51:50 +00:00
[3.13] gh-111201: Improve pyrepl auto indentation (GH-119606) (GH-119833)
- auto-indent when editing multi-line block
- ignore comments
(cherry picked from commit dae0375bd9)
Co-authored-by: Arnon Yaari <wiggin15@yahoo.com>
This commit is contained in:
parent
7dae73b21b
commit
38bf39cb4b
3 changed files with 101 additions and 11 deletions
|
|
@ -168,8 +168,8 @@ def test_newline_within_block_trailing_whitespace(self):
|
|||
|
||||
expected = (
|
||||
"def foo():\n"
|
||||
"\n"
|
||||
"\n"
|
||||
" \n"
|
||||
" \n"
|
||||
" a = 1\n"
|
||||
" \n"
|
||||
" " # HistoricalReader will trim trailing whitespace
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue