Permalink
Browse files

Merged pull request #3 from mreynolds/patch-1.

Use the platform line separator, instead of "\n"
  • Loading branch information...
2 parents 864b971 + 1861665 commit c45ebf6b94d20f3e916b710c91aef9eb1c79336c @Licenser committed Apr 27, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/lein_search/core.clj
View
3 src/lein_search/core.clj
@@ -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 c45ebf6

Please sign in to comment.