• (indent-lines level s)
Indent each line of string s to level.

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 circumspec/report/nested.clj:15 top

(defn indent-lines
  "Indent each line of string s to level."
  [level s]
  (when-not (nil? s)
    (->> s
         (re-split #"\n")
         (map #(indent level %))
         (str-join "\n"))))
Vars in circumspec.report.nested/indent-lines: ->> defn map nil? when-not
Used in 0 other vars

Comments top

No comments for indent-lines. Log in to add a comment.