Formatting.jl icon indicating copy to clipboard operation
Formatting.jl copied to clipboard

Honor precision for strings

Open jmkuhn opened this issue 5 years ago • 1 comments

julia> s = "123456789"
"123456789"

julia> printfmtln("{}--{:6.6s}", s, s) 
123456789--123456789

This should produce 123456789--123456

jmkuhn avatar Jul 13 '20 14:07 jmkuhn

This is fixed in JuliaString/Format.jl (along with many other bugs), I would recommend moving to Format.jl.

ScottPJones avatar Feb 17 '24 00:02 ScottPJones