Skip to content

Commit

Permalink
right-align labels in showvalues (not left-align) (#330)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevengj authored Aug 4, 2024
1 parent cf685c3 commit e60297b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ProgressMeter.jl
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ function printvalues!(p::AbstractProgress, showvalues; color = :normal, truncate
p.numprintedvalues = 0

for (name, value) in showvalues
msg = "\n " * rpad(string(name) * ": ", maxwidth+2+1) * string(value)
msg = "\n " * lpad(string(name) * ": ", maxwidth+2+1) * string(value)
max_len = (displaysize(p.output)::Tuple{Int,Int})[2]
# I don't understand why the minus 1 is necessary here, but empircally
# it is needed.
Expand Down

0 comments on commit e60297b

Please sign in to comment.