Skip to content

Commit fe28e87

Browse files
committed
CLJS-1087: with-out-str unexpectedly affected by *print-newline*
1 parent 0e7671d commit fe28e87

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/clj/cljs/core.clj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1882,7 +1882,8 @@
18821882
printing calls."
18831883
[& body]
18841884
`(let [sb# (goog.string.StringBuffer.)]
1885-
(binding [cljs.core/*print-fn* (fn [x#] (.append sb# x#))]
1885+
(binding [cljs.core/*print-newline* true
1886+
cljs.core/*print-fn* (fn [x#] (.append sb# x#))]
18861887
~@body)
18871888
(cljs.core/str sb#)))
18881889

0 commit comments

Comments
 (0)