Skip to content

Commit

Permalink
Merged pull request #3 from mreynolds/patch-1.
Browse files Browse the repository at this point in the history
Use the platform line separator, instead of "\n"
  • Loading branch information
Licenser committed Apr 27, 2011
2 parents 864b971 + 1861665 commit c45ebf6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lein_search/core.clj
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@


;; TODO: check to see if leiningen.core/home-dir is defined; use it if so. ;; 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 *lein-dir* (str (System/getProperty "user.home") "/.lein"))
(def *line-sep* (str (System/getProperty "line.separator")))


;;; User input functions ;;; User input functions


Expand Down Expand Up @@ -36,7 +37,7 @@ with a numbered list of choices."
(if (= 1 (count choices)) (if (= 1 (count choices))
(first choices) (first choices)
(do (println (do (println
(str-join "\n" (str-join *line-sep*
(for [[n i] (map vector (iterate inc 1) choices)] (for [[n i] (map vector (iterate inc 1) choices)]
(str n ": " (formatter i))))) (str n ": " (formatter i)))))
(loop [] (loop []
Expand Down

0 comments on commit c45ebf6

Please sign in to comment.