Skip to content
This repository has been archived by the owner on Dec 7, 2018. It is now read-only.

Commit

Permalink
make xml-zip more tolerant on the type of :content
Browse files Browse the repository at this point in the history
  • Loading branch information
cgrand committed Mar 28, 2010
1 parent 6efdadc commit 3671abf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/net/cgrand/xml.clj
Expand Up @@ -27,7 +27,7 @@
given a root element" given a root element"
[root] [root]
(z/zipper #(or (tag? %) (document? %)) (z/zipper #(or (tag? %) (document? %))
:content #(assoc %1 :content (and %2 (apply vector %2))) root)) (comp seq :content) #(assoc %1 :content %2) root))


(defn- insert-element [loc e] (defn- insert-element [loc e]
(-> loc (z/append-child e) z/down z/rightmost)) (-> loc (z/append-child e) z/down z/rightmost))
Expand Down

0 comments on commit 3671abf

Please sign in to comment.