-
Notifications
You must be signed in to change notification settings - Fork 6
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
Indenting continuation lines #9
Comments
Thanks for your comment about indenting continuation lines. What you ask for is not unreasonable, but implementation in findent is problematic:
However, I see two solutions for you:
into:
findent will indent this thusly:
I.e. add the continuation character (&) at the start of the continuation line, this way you have complete control about the lay out. Hoping this helps, Willem |
accidentally closed, re-opened it |
Yes it does help. many thanks. I think either way I have some manual tweaking to do afterwards. The codebase is not large so I'm not against doing some manual alterations after findent. |
Ok, closing now after a little edit of my answer above. |
First of all thanks for such an incredible tool!!! I inherited a project with indentations that are making me question my sanity.
So I am using the tool with the -Ia switch which I think is going to be my best option. However, there are some continuation lines which I cant figure out how to indent to my liking.
Example:
ends up looking like this
I have been experimenting with -k, -kd, and --align_paren but can't seem to get continuation lines to indent to the main line's contents, if that makes sense.
Another example is when this:
becomes this:
Any help is appreciated. Again thanks for this great tool.
The text was updated successfully, but these errors were encountered: