Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Newline auto-indentation can be wrong due to comments #4145

Closed
DStauffman opened this issue Feb 14, 2017 · 1 comment
Closed

Newline auto-indentation can be wrong due to comments #4145

DStauffman opened this issue Feb 14, 2017 · 1 comment

Comments

@DStauffman
Copy link
Contributor

Newline auto-indentation can be wrong due to comments

What steps will reproduce the problem?
File contents:

def func():
    foo = 1
    bar = 2 # comment (some parentheses) more comment
  1. Hit enter, line is indented by four spaces, as expected.
  2. Hit enter again, expect 4 spaces, instead line is indented by 22 spaces (to match open parenthesis sign from right hand side comment).

Versions and main components

  • Spyder Version: 3.1.2
  • Python Version: 3.6.0
  • Qt Version: 5.7.1
  • PyQt Version: 5.7.1
  • Operating system: Win 7, 64 bit

Installed via WinPython 64 bit 3.6.0.1Qt5

Dependencies

jedi >=0.8.1 : 0.9.0 (OK)
matplotlib >=1.0 : 2.0.0 (OK)
nbconvert >=4.0 : 5.1.1 (OK)
numpy >=1.7 : 1.11.3 (OK)
pandas >=0.13.1 : 0.19.2 (OK)
pep8 >=0.6 : 1.7.0 (OK)
pyflakes >=0.6.0 : 1.5.0 (OK)
pygments >=2.0 : 2.1.3 (OK)
pylint >=0.25 : 1.6.5 (OK)
qtconsole >=4.2.0: 4.2.1 (OK)
rope >=0.9.4 : 0.9.4-1 (OK)
sphinx >=0.6.6 : 1.5.1 (OK)
sympy >=0.7.3 : 1.0 (OK)

@ccordoba12
Copy link
Member

Thanks for reporting. This is a duplicate of issue #4096.

rlaverde added a commit to rlaverde/spyder that referenced this issue Feb 17, 2017
rlaverde added a commit to rlaverde/spyder that referenced this issue Feb 17, 2017
rlaverde added a commit to rlaverde/spyder that referenced this issue Feb 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants