There is an issue in that var resolution for referred vars includes the target rather than the source namespace. The attached patch addresses this issue, but, since it is a deeper issue (rather than a cosmetic doc output issue) this patch warrants heavier vetting.
Note
cljs.user/trim
in thedoc
output:cljs.user=> (require '[clojure.string :refer [trim]]) nil cljs.user=> (doc trim) ------------------------- cljs.user/trim ([s]) Removes whitespace from both ends of string. nil
This differs from what you get in Clojure's REPL:
user=> (require '[clojure.string :refer [trim]]) nil user=> (doc trim) ------------------------- clojure.string/trim ([s]) Removes whitespace from both ends of string. nil