Skip to content

Commit

Permalink
Ensure string is consistent with show
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierHnt committed May 16, 2024
1 parent 4498d13 commit 722b1b8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/display.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit 722b1b8

Please sign in to comment.