fogus/marginalia — Issue #84: Multiple defns inside let are not displayed correctly
Author: ath
Created: 2012-01-16 22:56:18+00:00
State: open

Reproduce this with Marginalia 0.6.1:

(let [y 1]
(defn foo
"Adds 1 to `x`."
[x]
(+ x y))
(defn bar
"Subtracts 1 from `x`."
[x]
(- x y)))

After a `lein marg` this will result in something like this:

Adds 1 to x.Subtracts 1 from x. (let [y 1]
(defn foo
[x]
(+ x y))
(defn bar
[x]
(- x y)))

while it should be:

(let [y 1]
Adds 1 to x. (defn foo
[x]
(+ x y))
Subtracts 1 from x. (defn bar
[x]
(- x y)))