From e3b252431f200c2692b2deaacf109be8164ca2d4 Mon Sep 17 00:00:00 2001 From: hhaensel Date: Mon, 11 Sep 2023 17:44:16 +0200 Subject: [PATCH] fix Pairs definition in rendering.jl --- src/stipple/rendering.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stipple/rendering.jl b/src/stipple/rendering.jl index 4fc0af32..db193a63 100644 --- a/src/stipple/rendering.jl +++ b/src/stipple/rendering.jl @@ -39,7 +39,7 @@ function join_js(xx, delim = ""; skip_empty = true, pre::Function = identity, st for x_raw in xx x = x_raw isa Base.Callable ? x_raw() : x_raw io2 = IOBuffer() - if x isa Union{AbstractDict, Pair, Base.Pairs, Vector{<:Pair}} + if x isa Union{AbstractDict, Pair, Base.Iterators.Pairs, Vector{<:Pair}} s = json(Dict(k => JSONText(v) for (k, v) in (x isa Pair ? [x] : x)))[2:end - 1] print(io2, s) else