*print-pretty* is a Clojure dynamic variable and the main on/off switch for pretty printing. It defaults to true, producing human-readable layouts; disabling it keeps the printed representation compact. section 23.20
Disable formatting locally
(require '[clojure.pprint :as pprint]) (binding [pprint/*print-pretty* false] (pprint/write (range 100))) ;; (0 1 2 ... 99)nil Without the binding, the same collection is laid out across lines. Use alter-var-root to change the setting globally, then restore it when needed.
