Skip to content

Commit

Permalink
Fix pprint with print-newline
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude committed Jun 28, 2024
1 parent ccd6624 commit b87302d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/sci/configs/cljs/pprint.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,18 @@
(def pns (sci/create-ns 'cljs.pprint nil))

(defn pprint [& args]
(binding [*print-fn* @sci/print-fn]
(binding [*print-fn* @sci/print-fn
*print-newline* @sci/print-newline]
(apply pp/pprint args)))

(defn print-table [& args]
(binding [*print-fn* @sci/print-fn]
(binding [*print-fn* @sci/print-fn
*print-newline* @sci/print-newline]
(apply pp/print-table args)))

(defn cl-format [& args]
(binding [*print-fn* @sci/print-fn]
(binding [*print-fn* @sci/print-fn
*print-newline* @sci/print-newline]
(apply pp/cl-format args)))

(def cljs-pprint-namespace
Expand Down

0 comments on commit b87302d

Please sign in to comment.