mirror of
https://github.com/python/cpython.git
synced 2025-07-08 03:45:36 +00:00
bpo-37892: Use space indents in IDLE Shell (GH-25678)
Adding a newline to the prompt moves it out of the way of user code input, which now starts at the left margin, along with continuation lines.
This commit is contained in:
parent
f6ee4dad58
commit
8ec2f0dc0c
3 changed files with 11 additions and 3 deletions
|
@ -889,11 +889,11 @@ class PyShell(OutputWindow):
|
|||
|
||||
OutputWindow.__init__(self, flist, None, None)
|
||||
|
||||
self.usetabs = True
|
||||
self.usetabs = False
|
||||
# indentwidth must be 8 when using tabs. See note in EditorWindow:
|
||||
self.indentwidth = 8
|
||||
self.indentwidth = 4
|
||||
|
||||
self.sys_ps1 = sys.ps1 if hasattr(sys, 'ps1') else '>>> '
|
||||
self.sys_ps1 = sys.ps1 if hasattr(sys, 'ps1') else '>>>\n'
|
||||
self.prompt_last_line = self.sys_ps1.split('\n')[-1]
|
||||
self.prompt = self.sys_ps1 # Changes when debug active
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue