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

crml (move to let) does not indent properly #22

Open
daveyarwood opened this issue May 18, 2018 · 0 comments
Open

crml (move to let) does not indent properly #22

daveyarwood opened this issue May 18, 2018 · 0 comments

Comments

@daveyarwood
Copy link

This is sort of similar to #21, though I'm not sure if it's technically related or not.

If I have this form:

(let [advertiser (-> advertiser
                       (unparse-custom-fields :rtbcustomfields))]
    (if (zero? id)
      (api-client/create-advertiser! (api-key) advertiser)
      (api-client/update-advertiser! (api-key) advertiser)))

And I move my cursor to the (zero? id) form and do crml, naming the binding id-zero?, this is the result:

(let [advertiser (-> advertiser
                   (unparse-custom-fields :rtbcustomfields))
    id-zero? (zero? id)]
(if id-zero?
  (api-client/create-advertiser! (api-key) advertiser)
  (api-client/update-advertiser! (api-key) advertiser)))

(This is with parinfer disabled. With parinfer enabled, it's worse because parinfer rearranges my parens based on the indentation.)

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

1 participant