-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
line wrapping breaks in weird places #438
Comments
The negation case is definitely fixable. We can keep the if ( .... lots of conditions here ... && someVar.someProperty.someProperty2,.someProperty3.someProperty4) { When should we give up and choose to break? (#200 limits our knowledge) We choose to wrap. |
Just to be clear, I made a change that should get rid of some cases where The property stuff is by design. |
Can we have |
@ClayMM - Please file a new issue with input, expected output, and actual output. |
per @jackocnr via jdavisclark/JsFormat#103:
It breaks after negation e.g.
becomes
and also before property names e.g.
becomes
Both make the code way less readable. Perhaps it should only break on spaces? Or between logical operators e.g.
&&
or||
?The text was updated successfully, but these errors were encountered: