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

Support fill, align & width for time point #3260

Merged
merged 4 commits into from
Jan 9, 2023
Merged

Conversation

ShawnZhong
Copy link
Contributor

Resolve #3237

auto begin = ctx.begin(), end = ctx.end();
if (begin == end || *begin == '}') return end;

begin = detail::parse_align(begin, end, specs);
Copy link
Contributor Author

@ShawnZhong ShawnZhong Jan 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just realized that parse_align(begin, end, specs) is marked as deprecated, should we use parse_format_specs instead?

One thing that doesn't work with parse_format_specs is that an error is thrown on the line enter_state(state::align, align != align::none); since it does not recognize % and falls into default.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's OK to use parse_align here. It might be easier to clean up and undeprecate parse_align instead of adjusting parse_format_specs but I need to think about it more.

@vitaut
Copy link
Contributor

vitaut commented Jan 9, 2023

Thank you!

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.

formatting chrono with padding
2 participants