(indent-for-line tags line)
Returns the number of spaces the given line should be indented.
Spec
(clojure.spec.alpha/fspec
:args
(clojure.spec.alpha/cat
:tags
:tag-soup.core/all-tags
:line
clojure.core/integer?)
:ret
clojure.core/integer?
:fn
nil)
Source
(defn indent-for-line
"Returns the number of spaces the given line should be indented."
[tags line]
(or (->> (get-tags-before-line tags line)
reverse
(some :next-line-indent))
0))