From e455d3e1492bea01cd15a63cfd358277b013a6d7 Mon Sep 17 00:00:00 2001 From: dysonance Date: Mon, 3 Apr 2017 05:58:41 -0400 Subject: [PATCH] bugfix in show.jl --- src/show.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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