diff --git a/Project.toml b/Project.toml index 1b9cd00..5a4ff39 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "AxisKeys" uuid = "94b1ba4f-4ee9-5380-92f1-94cde586c3c5" license = "MIT" -version = "0.2.14" +version = "0.2.15" [deps] AbstractFFTs = "621f4979-c628-5d54-868e-fcf4e3e8185c" diff --git a/src/show.jl b/src/show.jl index 6aca95a..65fea74 100644 --- a/src/show.jl +++ b/src/show.jl @@ -163,6 +163,7 @@ Base.alignment(io::IO, x::ShowWith) = alignment(io, x.val) .+ (2,0) # extra bra Base.length(x::ShowWith) = length(string(x.val)) Base.ncodeunits(x::ShowWith) = ncodeunits(string(x.val)) Base.print(io::IO, x::ShowWith) = printstyled(io, string(x.val); x.nt...) +Base.iterate(x::ShowWith) = nothing # fix for https://github.com/mcabbott/AxisKeys.jl/issues/159 # For higher-dim printing, I just want change the [:, :, 1] things, add name/key, # but can't see a way to hook in. So copy this huge function from Base?