瀏覽代碼

start maps on a newline to avoid } { on one line

Timothy Pratley 2 年之前
父節點
當前提交
55bcf11a5a
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/main/frontend/modules/file/uprint.cljs

+ 2 - 2
src/main/frontend/modules/file/uprint.cljs

@@ -7,11 +7,11 @@
       (do (print-one (key e) w opts)
           (-write w \space)
           (print-one (val e) w opts)))
-    (str prefix "{") \newline "}"
+    (str prefix "\n{") \newline "}"
     opts (seq m)))
 
 (defn ugly-pr-str
-  "Ugly printing fast, with newline per block"
+  "Ugly printing fast, with newlines so that git diffs are smaller"
   [x]
   (with-redefs [print-prefix-map print-prefix-map*]
     (pr-str x)))