greglook / cljstyle

A tool for formatting Clojure code
Eclipse Public License 1.0
293 stars 39 forks source link

Maps with default namespaces aren't indented correctly #6

Closed drewinglis closed 5 years ago

drewinglis commented 5 years ago
$ cljfmt check foo.clj 
--- a/foo.clj
+++ b/foo.clj
@@ -1,5 +1,5 @@
 (ns foo)

-(def bar #:asdf{:one 1
+(def bar #:asdf {:one 1
                 :two 2})
1 files formatted incorrectly
$ cat foo.clj
(ns foo)

(def bar #:asdf{:one 1
                :two 2})

Currently it inserts a space between the default namespace and the map, but doesn't indent the map to match.

It should either insert a space and indent the map or do nothing.

Version 0.8.1.