summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Dipert and Stuart Halloway <pair@clojure.com>2010-08-20 12:36:30 -0400
committerStuart Halloway <stu@thinkrelevance.com>2010-12-17 17:08:46 -0500
commit84022ed9fff9f495132038f6e279f4f7b148f422 (patch)
treeaf934d534cfc8299221dd87959ec59ff553e43f9
parent62128f741d3af4ef5a8700a5ac68ca9010bb1610 (diff)
use platform default for (newline)
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
-rw-r--r--src/clj/clojure/core.clj5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/clj/clojure/core.clj b/src/clj/clojure/core.clj
index 2664d0d9..a9e45d92 100644
--- a/src/clj/clojure/core.clj
+++ b/src/clj/clojure/core.clj
@@ -3207,12 +3207,11 @@
(apply pr more))))
(defn newline
- "Writes a newline to the output stream that is the current value of
- *out*"
+ "Writes a platform-specific newline to *out*"
{:added "1.0"
:static true}
[]
- (. *out* (append \newline))
+ (. *out* (append (System/getProperty "line.separator")))
nil)
(defn flush