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

Spaces after argument vector and between elements in a vector not removed #39

Open
ghost opened this issue May 14, 2015 · 3 comments
Open

Comments

@ghost
Copy link

ghost commented May 14, 2015

Hi,

Given

(first   [123    1 2 3 4 5]

When

 I run 'lein cljfmt fix'

Then

I would expect (first [123 1 2 3 4 5] as the result

Is there a setting for this ?

@weavejester
Copy link
Owner

This functionality currently doesn't exist in cljfmt, and it would have to be an optional feature if it did. Extra whitespace between forms is not unusual in Clojure code, as it's often used for lining up expressions, e.g.

(let [x  (first coll)
      xs (rest coll)]
  (cons x xs))

@weavejester
Copy link
Owner

See also #36.

@or
Copy link
Contributor

or commented May 10, 2022

This was added in #203, the option is called "remove-multiple-non-indenting-spaces".

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