You're viewing version 1.2.0 of start-element. The latest stable version of Clojure Core is 1.3.0.
1.2.0 Arrow_down_16x16

start-element

clojure.test.junit

  • (start-element tag pretty & [attrs])

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/test/junit.clj:55 top

(defn start-element
  [tag pretty & [attrs]]
  (if pretty (indent))
  (print (str "<" tag))
  (if (seq attrs)
    (doseq [[key value] attrs]
      (print (str " " (name key) "=\"" (escape-xml value) "\""))))
  (print ">")
  (if pretty (println))
  (set! *depth* (inc *depth*)))
Vars in clojure.test.junit/start-element: defn doseq inc key name print println seq str
Used in 0 other vars

Comments top

No comments for start-element. Log in to add a comment.