From 41960e1fc58ab713d2b6d78154e9eb63964cf2b7 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Wed, 30 Oct 2024 14:26:45 +0100 Subject: [PATCH] Add @show_name invocations --- src/MatRing.jl | 2 ++ src/Matrix.jl | 2 ++ test/PrettyPrinting-test.jl | 2 ++ 3 files changed, 6 insertions(+) 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 ")