File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 312
312
(defn- custom-indent [zloc indents context]
313
313
(if (empty? indents)
314
314
(list-indent zloc)
315
- (let [indenter (->> ( sort-by indent-order indents)
315
+ (let [indenter (->> indents
316
316
(map #(make-indenter % context))
317
317
(apply some-fn))]
318
318
(or (indenter zloc)
342
342
([form indents]
343
343
(indent form indents {}))
344
344
([form indents alias-map]
345
- (let [ns-name (find-namespace (z/edn form))]
345
+ (let [ns-name (find-namespace (z/edn form))
346
+ sorted-indents (sort-by indent-order indents)]
346
347
(transform form edit-all should-indent?
347
- #(indent-line % indents {:alias-map alias-map
348
- :ns-name ns-name})))))
348
+ #(indent-line % sorted- indents {:alias-map alias-map
349
+ :ns-name ns-name})))))
349
350
350
351
(defn- map-key? [zloc]
351
352
(and (z/map? (z/up zloc))
You can’t perform that action at this time.
0 commit comments