ITADN

List forcing new line on all arguments except only on the breaking one - Bug: fn-map removes code

#347ClosedKaspazza 创建于 2025-02-12
K
Kaspazzacommented
Having this config: ``` {:map {:comma? false :force-nl? true} :list {:hang? false :force-nl? false}} ``` Our desired formatting is this: ``` (rf/reg-event-fx :application/initialize-failure (fn [{db :db} [_ result]] (-> {:db db :fx []} (update :fx conj [:log! [{:level :error :data result} "Application is initialized"]])))) ``` Where map inside update is broken into a new level due to a key but rest of the list inside update stays on the same level What I get instead is this: ``` (rf/reg-event-fx :application/initialize-failure (fn [{db :db} [_ result]] (-> {:db db :fx []} (update :fx conj [:log! [{:level :error :data result} "Application is initialized"]])))) ```
关闭于 2025-05-20 16 条评论