Browse files

Always always always clean up windows newlines

  • Loading branch information...
1 parent d7c0811 commit 43b9820ff8a0a0a5f03ed2d0f999c5d7f1c9ac5e @dakrone committed Jan 25, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/cd_client/core.clj
View
6 src/cd_client/core.clj
@@ -62,7 +62,11 @@
`(call-with-ns-and-name ~fn (var ~name))))))
(defn- get-simple [url]
- (json/decode (:body (http/get url {:accept-encoding ""})) true))
+ (-> url
+ (http/get {:accept-encoding ""})
+ :body
+ (.replaceAll "\\\\r" "")
+ (json/decode true)))
(defn examples-core
"Return examples from clojuredocs for a given namespace and name (as strings)"

0 comments on commit 43b9820

Please sign in to comment.