Skip to content

Commit

Permalink
Fix unicode characters in JSON docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
Stuart Sierra committed Nov 30, 2010
1 parent 82c7d49 commit 01036ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/json/src/main/clojure/clojure/contrib/json.clj
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@
Valid options are:
:escape-unicode false
to turn of \uXXXX escapes of Unicode characters."
to turn of \\uXXXX escapes of Unicode characters."
[x & options]
(let [{:keys [escape-unicode] :or {escape-unicode true}} options
sw (StringWriter.)
Expand All @@ -320,7 +320,7 @@
Valid options are:
:escape-unicode false
to turn off \uXXXX escapes of Unicode characters."
to turn off \\uXXXX escapes of Unicode characters."
[x & options]
(let [{:keys [escape-unicode] :or {escape-unicode true}} options]
(write-json x *out* escape-unicode)))
Expand Down Expand Up @@ -354,7 +354,7 @@
Valid options are:
:escape-unicode false
to turn off \uXXXX escapes of Unicode characters."
to turn off \\uXXXX escapes of Unicode characters."
[x & options]
(let [{:keys [escape-unicode] :or {escape-unicode true}} options]
(write x :dispatch #(pprint-json-dispatch % escape-unicode))))

0 comments on commit 01036ea

Please sign in to comment.