Skip to content

Commit c9f3281

Browse files
committed
updated printing of empty boxes
1 parent 4ba98f6 commit c9f3281

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/display.jl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,13 +324,17 @@ end
324324

325325
function representation(X::IntervalBox{N, T}, format=nothing) where {N, T}
326326

327-
all(==(first(X)), X) && return string(first(X), superscriptify(N))
327+
isempty(X) && return string("", superscriptify(N))
328328

329329
if format == nothing
330330
format = display_params.format # default
331331
end
332332

333-
if display_params.format == :full
333+
if all(==(first(X)), X)
334+
return string(representation(first(X), format), superscriptify(N))
335+
end
336+
337+
if format == :full
334338
return string("IntervalBox(", join(X.v, ", "), ")")
335339

336340
else

0 commit comments

Comments
 (0)