-
Notifications
You must be signed in to change notification settings - Fork 17
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
Properly indent new statements #12
Labels
bug
Something isn't working
Comments
PR: #66 should address this. See the added passing case to test_ast.py:
Note the non-standard indent becomes standard |
MementoRC
added a commit
to MementoRC/refactor
that referenced
this issue
Dec 29, 2022
Now would we want to have something like this (keeping the comments when possible):
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem
The indentation for the statements are not preserved, since
ast.unparse()
uses 4 spaces by default. We should infer the common indentation level (even in some blocks it might be different), and smartly use it for the ast.unparse;Rule
Input
Diff
Expected Difff
The text was updated successfully, but these errors were encountered: