Permalink
Browse files

Use the platform line separator, instead of "\n"

  • Loading branch information...
1 parent 864b971 commit 1861665b2f8514020317d8abb8ee5d493be38e73 Matt Reynolds committed Apr 26, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/lein_search/core.clj
View
@@ -6,6 +6,7 @@
;; TODO: check to see if leiningen.core/home-dir is defined; use it if so.
(def *lein-dir* (str (System/getProperty "user.home") "/.lein"))
+(def *line-sep* (str (System/getProperty "line.separator")))
;;; User input functions
@@ -36,7 +37,7 @@ with a numbered list of choices."
(if (= 1 (count choices))
(first choices)
(do (println
- (str-join "\n"
+ (str-join *line-sep*
(for [[n i] (map vector (iterate inc 1) choices)]
(str n ": " (formatter i)))))
(loop []

0 comments on commit 1861665

Please sign in to comment.