Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude committed Feb 6, 2023
1 parent 948af14 commit 79664dc
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/quickdoc/impl.clj
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,10 @@
(println "\n\n"))
(if-let [doc (:doc var)]
(do (println)
(print-docstring ns->vars ns-name doc opts)
(println))
(do (println "No docstring.")
(println)))
(println (format "<sub><a href=\"%s\">source</a></sub>" (var-source var opts)))
(print-docstring ns->vars ns-name doc opts))
(println "No docstring."))
;; We rely on always printing a docstring (hence "No docstring." when there is no docstring) to attach the <sub> to
(println (format "<br><sub><a href=\"%s\">source</a></sub>" (var-source var opts)))
(when collapse-vars (println "</details>\n\n"))))

(defn print-namespace [ns-defs ns->vars ns-name vars opts overrides]
Expand Down

0 comments on commit 79664dc

Please sign in to comment.