diff --git a/src/MatRing.jl b/src/MatRing.jl index 7791420a0b..beb8ed9e8b 100644 --- a/src/MatRing.jl +++ b/src/MatRing.jl @@ -164,6 +164,8 @@ function show(io::IO, mime::MIME"text/plain", a::MatRing) end function show(io::IO, a::MatRing) + @show_name(io, a) + @show_special(io, a) if is_terse(io) print(io, "Matrix ring") else diff --git a/src/Matrix.jl b/src/Matrix.jl index 5744e55796..151f8310b2 100644 --- a/src/Matrix.jl +++ b/src/Matrix.jl @@ -791,6 +791,8 @@ function show(io::IO, ::MIME"text/plain", a::MatSpace) end function show(io::IO, a::MatSpace) + @show_name(io, a) + @show_special(io, a) if is_terse(io) print(io, "Matrix space") else diff --git a/test/PrettyPrinting-test.jl b/test/PrettyPrinting-test.jl index 597caef144..6befdbf120 100644 --- a/test/PrettyPrinting-test.jl +++ b/test/PrettyPrinting-test.jl @@ -342,6 +342,8 @@ end end function Base.show(io::IO, R::NewRing) + @show_name(io, R) + @show_special(io, R) if PrettyPrinting.is_terse(io) # no nested printing print(io, "terse printing of newring ")