Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

right-align labels in showvalues (not left-align) #330

Merged
merged 1 commit into from
Aug 4, 2024

Conversation

stevengj
Copy link
Contributor

@stevengj stevengj commented Jul 27, 2024

Before this PR, labels in showvalues are left-aligned, which looks weird:

julia> x,n = 1,10
(1, 10)

julia> p = Progress(n);

julia> for iter in 1:10
           x *= 2
           sleep(0.5)
           next!(p; showvalues = [("iteration count",iter), ("x",x)])
       end
Progress: 100%|█████████████████████████████████████████| Time: 0:00:05
  iteration count:  10
  x:                1024

afterwards, they are right-aligned:

julia> for iter in 1:10
           x *= 2
           sleep(0.5)
           next!(p; showvalues = [("iteration count",iter), ("x",x)])
       end
Progress: 100%|█████████████████████████████████████████| Time: 0:00:05
  iteration count:  10
                x: 1024

which seems more readable to me.

Copy link

codecov bot commented Jul 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.73%. Comparing base (807496a) to head (4558a73).
Report is 19 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #330      +/-   ##
==========================================
+ Coverage   93.48%   96.73%   +3.25%     
==========================================
  Files           1        1              
  Lines         399      552     +153     
==========================================
+ Hits          373      534     +161     
+ Misses         26       18       -8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@MarcMush MarcMush merged commit e60297b into timholy:master Aug 4, 2024
26 checks passed
@stevengj stevengj deleted the patch-2 branch August 9, 2024 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants