Skip to content

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

Description

@daveyarwood

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.)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions