Skip to content

Commit

Permalink
default to :default style
Browse files Browse the repository at this point in the history
  • Loading branch information
hexaeder committed Sep 10, 2024
1 parent 637f222 commit 7f147a6
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/show.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7f147a6

Please sign in to comment.