From 7f147a6513303a1228095551f514cbe663a89bf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hans=20W=C3=BCrfel?= Date: Tue, 10 Sep 2024 17:24:23 +0200 Subject: [PATCH] default to :default style fix for https://github.com/JuliaLang/StyledStrings.jl/issues/90 --- src/show.jl | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/show.jl b/src/show.jl index 282a64f3..92ec284a 100644 --- a/src/show.jl +++ b/src/show.jl @@ -88,12 +88,8 @@ function stylesymbolarray(syms, defaults, symstyles=Dict{Int,Symbol}()) @assert length(syms) == length(defaults) ret = "[" for (i, sym, default) in zip(1:length(syms), syms, defaults) - style = get(symstyles, i, nothing) - if isnothing(style) - ret = ret * string(sym) - else - ret = ret * styled"{$style:$(string(sym))}" - end + style = get(symstyles, i, :default) + ret = ret * styled"{$style:$(string(sym))}" if !isnothing(default) ret = ret * styled"{NetworkDynamics_defaultval:=$default}" end