-
Notifications
You must be signed in to change notification settings - Fork 49
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
:community
and :rod
don't compose well
#223
Comments
Oh yes, I surely remember! I implemented an entirely new subsystem in no small part so that I could implement the This is clearly a bug of some kind. I can reproduce it, thanks for the simple example. I'm out of time tonight, but I'll give it a good hard look first thing tomorrow. I'm hopeful that I can find some fix that doesn't require a new release, but rather some configuration tweaking, but I'll know for sure once I figure out the details. |
The problem is that some function types are "arg" and some are "body", and the However, when using guides, the actual function type is pretty much ignored (except the the arg/body distinction), and so we can replace the [Note -- you have to be using zprint I can see two, rather similar, ways to do this. One is to just ignore the Here is where you just fix the
Here is where you redefine the
This makes me glad that I did the work to allow you to define a style and invoke it in the same option map. That didn't just fall out. Since you are using You can, however, place the
I would recommend the second, as it means that you don't have to have every user mess with their probably non-existent So, here is the
and you just add When Let me know if you have any problems with this. |
Thanks much! Sounding great. For clarity, in the next stable release will |
Yes, in the next stable release, that I expect to be |
This is fixed in |
Awesome! Most likely I'll be giving it use asap. Obviously I'll keep an eye open on #229 also - feel free to keep me in the loop. |
Fix works like a charm! |
Hi!
As you surely remember, I requested the "
:rod
" style, which other people came to appreciate. In fact, at my new job they happened to be using it!However, it's also used in composition with the
:community
style, which is when issues arise.We use lein-zprint, with a
:style [:community :rod]
Lein setting. While either of those individually work as intended, when composed, they yield a 1-space indentation:Since 1-space indentation is not the intended (or effective) style of either preset, it seems to represent a bug. And of course it's quite an inconvenience, since it will cause quite the discrepancy between editors' formatting and zprint's in this case.
For your consideration.
Cheers - V
The text was updated successfully, but these errors were encountered: