Merge pull request #27 from ticking/stdout-atomicity

Fix `str-println` newline
This commit is contained in:
Peter Taoussanis 2013-09-25 01:13:21 -07:00
commit a6f287fe38

View File

@ -13,7 +13,7 @@
"Like `println` but prints all objects to output stream as a single
atomic string. This is faster and avoids interleaving race conditions."
[& xs]
(print (str/join \space (filter identity xs)) \newline)
(print (str (str/join \space (filter identity xs)) \newline))
(flush))
(defn color-str [color & xs]