Skip to content

Commit

Permalink
fix println again
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaqz committed Apr 1, 2023
1 parent 91c5b2d commit 3cb7767
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Dimensions/show.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ function Base.show(io::IO, mime::MIME"text/plain", dims::DimTuple)
print(io, ", ")
show(ctx, mime, d)
end
println(io)
return 0
else # Dims get a line each
haskey(io, :inset) && println(io)
Expand All @@ -23,7 +22,6 @@ function Base.show(io::IO, mime::MIME"text/plain", dims::DimTuple)
print(io, inset)
show(ctx, mime, d)
end
println(io)
return lines
end
end
Expand Down
2 changes: 2 additions & 0 deletions src/array/show.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ function Base.show(io::IO, mime::MIME"text/plain", A::AbstractDimArray)
summary(io, A)
print_name(io, name(A))
lines += Dimensions.print_dims(io, mime, dims(A))
!(isempty(dims(A)) || isempty(refdims(A))) && println(io)
lines += Dimensions.print_refdims(io, mime, refdims(A))
println(io)

# Printing the array data is optional, subtypes can
# show other things here instead.
Expand Down

0 comments on commit 3cb7767

Please sign in to comment.