cljfmt
cljfmt copied to clipboard
Spaces after argument vector and between elements in a vector not removed
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 ?
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))
See also #36.
This was added in https://github.com/weavejester/cljfmt/pull/203, the option is called "remove-multiple-non-indenting-spaces".