#54499 approached to fix #52986 (to no longer return nothing without REPL).
But as @ztangent and @KristofferC discussed in #52986 (comment), the returned object is still different, making tests like probcomp/Gen.jl#523 and Nemocas/AbstractAlgebra.jl#1716 fail.
IMO, an okay solution would be to add some repr (or similar) method for Base.Doc.DocStr, so that at least string(@doc x) is consistent between 1.10 and 1.11+.
#54499 approached to fix #52986 (to no longer return
nothingwithout REPL).But as @ztangent and @KristofferC discussed in #52986 (comment), the returned object is still different, making tests like probcomp/Gen.jl#523 and Nemocas/AbstractAlgebra.jl#1716 fail.
IMO, an okay solution would be to add some
repr(or similar) method forBase.Doc.DocStr, so that at leaststring(@doc x)is consistent between 1.10 and 1.11+.