Multiple defns inside let are not displayed correctly #84

Open
ath opened this Issue Jan 16, 2012 · 0 comments

Comments

Projects
None yet
1 participant

ath commented Jan 16, 2012

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)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment