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

inserting line break in code line does not align well on next line #2001

Closed
spyder-bot opened this issue Feb 17, 2015 · 12 comments
Closed

inserting line break in code line does not align well on next line #2001

spyder-bot opened this issue Feb 17, 2015 · 12 comments

Comments

@spyder-bot
Copy link
Collaborator

From 12w13d2...@gmail.com on 2014-10-09T08:54:59Z

Spyder Version: 2.3.1
Python Version: 2.7.6
Qt Version : 4.8.6, PyQt4 (API v2) 4.10.4 on Linux
IPython >=0.13 : 1.2.1 (OK)
matplotlib >=1.0: 1.4.0 (OK)
pandas >=0.13.1 : 0.14.1 (OK)
pep8 >=0.6 : None (NOK)
psutil >=0.3 : None (NOK)
pyflakes >=0.5.0: 0.8.1 (OK)
pygments >=1.6 : 1.6 (OK)
pylint >=0.25 : None (NOK)
rope >=0.9.2 : 0.10.2 (OK)
sphinx >=0.6.6 : 1.2.3 (OK)
sympy >=0.7.0 : None (NOK)

What steps will reproduce the problem?

1.move cursor into any valid python line e.g.(^ marks the cursor) "foo(bar1,^bar2,bar3)"
2.hit enter key

What is the expected output? What do you see instead?

expected (first bars are vertical aligned):
"foo(bar1,
bar2,bar3)"

current result (unaligned arguments. maybe 17 spaces off)
"foo(bar1,
bar2,bar3)"

Please provide any additional information below

.

Original issue: http://code.google.com/p/spyderlib/issues/detail?id=2001

@spyder-bot
Copy link
Collaborator Author

From ccordoba12 on 2014-11-18T15:13:29Z

Thanks for reporting

Labels: MS-v2.3.3 Cat-Editor

@spyder-bot
Copy link
Collaborator Author

From ccordoba12 on 2015-01-08T15:18:08Z

Labels: -MS-v2.3.3 MS-v2.3.4

@ccordoba12 ccordoba12 modified the milestones: v2.4, v2.3.4 Mar 7, 2015
@ccordoba12
Copy link
Member

@blink1073, could you take a look at this one? I think you worked on something like this for the last of your PRs merged on bitbucket.

@blink1073 blink1073 self-assigned this Mar 7, 2015
@blink1073
Copy link
Contributor

On it.

@blink1073
Copy link
Contributor

Actually I think I already fixed this one, I did a few experiments in the editor and it has the desired behavior.

@blink1073
Copy link
Contributor

Case in point:

        def foo(bar1,bar2,bar3)

        def foo(bar1,
                bar2,bar3)

@goanpeca
Copy link
Member

goanpeca commented Apr 8, 2015

Can we close this then?

@ccordoba12
Copy link
Member

@goanpeca, have you tested it yourself? I haven't closed this one because I haven't had time to verify that everything is working as expected.

@goanpeca
Copy link
Member

goanpeca commented Apr 8, 2015

Well the example in the description works fine for me as @blink1073 pointed out (in master)

@Nodd
Copy link
Contributor

Nodd commented Apr 8, 2015

It work for me on these simple examples but sometimes I still get wrong indentation. I wasn't able to recreate an example though, i'll try to do it next time it happens (it's quite rare).

@goanpeca
Copy link
Member

goanpeca commented Apr 8, 2015

Yes, for me as well sometimes it fails, but when that happens I will open a new issue, for THIS issue which uses the simple example it seems to work, so closing?

@Nodd
Copy link
Contributor

Nodd commented Apr 8, 2015

Alright, closing.

@Nodd Nodd closed this as completed Apr 8, 2015
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

5 participants