clojure.repl/doc repeats doc string in output for special forms in Clojure 1.9.0

Description

Here is output from Clojure 1.8.0:

Here is the corresponding output from Clojure 1.9.0:

This repetition only occurs when calling clojure.repl/doc or clojure.repl/print-doc for special form symbols, not for other symbols like macros and functions. It was introduced when modifying clojure.repl/print-doc when adding the ability to print specs in its output, and the fix is straightforward.

Screened by: Alex Miller

Screening: Some useful variants checked in testing this:

Environment

None

Activity

Show:
Andy Fingerhut
December 16, 2017, 12:20 AM

Patch CLJ-2295-v1.patch dated 2017-Dec-15 is one possible way to fix this issue. Verified that output for other cases, e.g. macros, is unchanged from Clojure 1.8.0 with these changes, except for the new Spec output, which should be kept.

Alex Miller
August 28, 2020, 3:22 PM

Patch applied for 1.10.2

Fixed

Assignee

Unassigned

Reporter

Andy Fingerhut

Approval

Ok

Patch

Code

Fix versions

Affects versions

Priority

Critical
Configure