From 722b1b817a00149d8b5816547669dc144db67215 Mon Sep 17 00:00:00 2001 From: OlivierHnt <38465572+OlivierHnt@users.noreply.github.com> Date: Thu, 16 May 2024 21:17:28 +0200 Subject: [PATCH] Ensure `string` is consistent with `show` --- src/display.jl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/display.jl b/src/display.jl index 1d0ad0748..f31ceaafc 100644 --- a/src/display.jl +++ b/src/display.jl @@ -100,6 +100,9 @@ end # printing mechanism +Base.show(io::IO, a::Union{BareInterval,Interval,Complex{<:Interval}}) = + print(io, _str_repr(a, display_options.format)) + Base.show(io::IO, ::MIME"text/plain", a::Union{BareInterval,Interval,Complex{<:Interval}}) = print(io, _str_repr(a, display_options.format))