diff --git a/src/show.jl b/src/show.jl index 98b919d..ad0559e 100644 --- a/src/show.jl +++ b/src/show.jl @@ -16,10 +16,10 @@ const SHOWINT = false # whether to format integer columns without decimals # strwidth(b::Bool)::Int = b ? 4 : 5 # strwidth(c::Char)::Int = 1 -str_width(s::AbstractString)::Int = strwidth(string(s)) +str_width(s::AbstractString)::Int = strwidth(s) str_width(s::Symbol)::Int = strwidth(string(s)) -str_width(n::Number)::Int = strwidth(string(s)) -str_width(f::Function)::Int = strwidth(string(s)) +str_width(n::Number)::Int = strwidth(string(n)) +str_width(f::Function)::Int = strwidth(string(f)) str_width(b::Bool)::Int = b ? 4 : 5 str_width(c::Char)::Int = 1