JetBrains / la-clojure

Clojure plugin for IntelliJ IDEA
Apache License 2.0
220 stars 49 forks source link

Vector with :keyword as final element leaves an extra space #49

Closed trptcolin closed 11 years ago

trptcolin commented 11 years ago

This is what we see, upon clojure-formatting a file or region:

(ns foo.bar-spec
  (:require [joodo.spec-helpers.controller :refer :all ]
            [hyperion.dev.spec-helper :refer [with-memory-datastore]]
            [speclj.core :refer :all ]))

I'd expect to see this instead:

(ns foo.bar-spec
  (:require [joodo.spec-helpers.controller :refer :all]
            [hyperion.dev.spec-helper :refer [with-memory-datastore]]
            [speclj.core :refer :all]))

I've only noticed vectors ending with keywords, probably because of their prevalence in ns forms, but not sure if this happens with lists, maps, etc. (I'm not a regular IntelliJ user, but have coworkers who are.)

trptcolin commented 11 years ago

Thanks!