We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64ed8a8 commit ff4b712Copy full SHA for ff4b712
src/clojure/java/doc/impl.clj
@@ -155,7 +155,8 @@
155
result)))
156
157
(defn print-javadoc [{:keys [class-description-md selected-method]}]
158
- (if selected-method
159
- (doseq [{:keys [method-description-md]} selected-method]
160
- (println method-description-md))
161
- (println class-description-md)))
+ (let [condense-lines (fn [s] (str/replace s #"\n{3,}" "\n\n"))]
+ (if selected-method
+ (doseq [{:keys [method-description-md]} selected-method]
+ (println (condense-lines method-description-md)))
162
+ (println (condense-lines class-description-md)))))
0 commit comments