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

Use actual printer width for elapsed segment instead of fixed width=5 #28

Merged
merged 1 commit into from
May 26, 2023
Merged

Conversation

lsdch
Copy link
Contributor

@lsdch lsdch commented Nov 5, 2022

Current implementation forces fixed width=5 for elapsed segments, which is not sufficient when using other formats than mm:ss such as elapsed ~pp:Progress.Units.Duration.hh_mm_ss () .
This made the calculated length for the bar incorrect, and results in unwanted line wraps.
Using the width declared in the printer seems to fix the problem.

@dinosaure dinosaure merged commit 9a85313 into craigfe:main May 26, 2023
dinosaure added a commit to dinosaure/opam-repository that referenced this pull request May 26, 2023
CHANGES:

- Fix lower bounds on UTF-8 libraries (@craigfe, 42759d5)
- Fix removed functions in `mtime.2.0.0` (@patricoferris, craigfe/progress#31)
- Use actual printer width for elapsed segment (@lsdch, craigfe/progress#28)
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