diff --git a/src/Dimensions/primitives.jl b/src/Dimensions/primitives.jl index 0dcca7265..c6c2c1dd5 100644 --- a/src/Dimensions/primitives.jl +++ b/src/Dimensions/primitives.jl @@ -127,7 +127,8 @@ any combination of either. julia> using DimensionalData julia> A = DimArray(ones(2, 3, 2), (X, Y, Z)) -2×3×2 DimArray{Float64,3} with dimensions: X, Y, Z[:, :, 1] +2×3×2 DimArray{Float64,3} with dimensions: X, Y, Z +[:, :, 1] 1.0 1.0 1.0 1.0 1.0 1.0 [and 1 more slices...] @@ -346,7 +347,8 @@ A = ones(X(2), Y(4), Z(2)) Dimensions.swapdims(A, (Dim{:a}, Dim{:b}, Dim{:c})) # output -2×4×2 DimArray{Float64,3} with dimensions: Dim{:a}, Dim{:b}, Dim{:c}[:, :, 1] +2×4×2 DimArray{Float64,3} with dimensions: Dim{:a}, Dim{:b}, Dim{:c} +[:, :, 1] 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 [and 1 more slices...] diff --git a/src/Dimensions/show.jl b/src/Dimensions/show.jl index 830fdace2..d4a23359a 100644 --- a/src/Dimensions/show.jl +++ b/src/Dimensions/show.jl @@ -7,6 +7,7 @@ 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) @@ -22,7 +23,7 @@ function Base.show(io::IO, mime::MIME"text/plain", dims::DimTuple) print(io, inset) show(ctx, mime, d) end - print(io, "\n") + println(io) return lines end end