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

cond-> should be indented like cond #44

Closed
Malabarba opened this issue Jul 15, 2015 · 3 comments
Closed

cond-> should be indented like cond #44

Malabarba opened this issue Jul 15, 2015 · 3 comments

Comments

@Malabarba
Copy link

I believe cond-> and cond->> should be indented like the following,

(cond->> [:a :b :c]
  (pred?) (remove #{:a})
  true    (vec))

but cljfmt indents them like this:

(cond->> [:a :b :c]
         (pred?) (remove #{:a})
         true    (vec))

For instance, see here.

@weavejester
Copy link
Owner

cljfmt does do this for cond->, but cond->> is missing from the indentation rules.

@weavejester
Copy link
Owner

Fixed in 0.2.1.

@Malabarba
Copy link
Author

Thanks @weavejester

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants