Skip to content

Commit

Permalink
Fix some misleading indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
amalloy committed Jul 26, 2011
1 parent 213dc28 commit 28d1bb9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions modules/xml/src/main/clojure/clojure/data/xml.clj
Expand Up @@ -292,7 +292,7 @@
[e & {:as opts}]
(let [content-handler (atom nil)
trans (-> (javax.xml.transform.TransformerFactory/newInstance)
.newTransformer)]
.newTransformer)]

(when (:indent opts)
(.setOutputProperty trans "indent" "yes")
Expand All @@ -309,10 +309,10 @@
(when (instance? java.io.OutputStreamWriter *out*)
(let [decl-enc (.getOutputProperty trans "encoding")
stream-enc (.getEncoding *out*)]
(if (not= (Charset/forName decl-enc) (Charset/forName stream-enc))
(throw (Exception. (str "Output encoding of stream (" stream-enc
") doesn't match declaration ("
decl-enc ")"))))))
(if (not= (Charset/forName decl-enc) (Charset/forName stream-enc))
(throw (Exception. (str "Output encoding of stream (" stream-enc
") doesn't match declaration ("
decl-enc ")"))))))

(.transform
trans
Expand Down

0 comments on commit 28d1bb9

Please sign in to comment.