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

Add support for using text_style in format and vformat directly (#993) #994

Merged
merged 1 commit into from
Jan 1, 2019

Conversation

Naios
Copy link
Contributor

@Naios Naios commented Dec 30, 2018

This PR extends the fmt::format and fmt::vformat function to also work with a provided fmt::text_style (#993):

std::string message = fmt::format(fmt::emphasis::bold | fg(fmt::color::red),
                                  "The answer is {}", 42);
std::cout << message << std::endl;

screenshot_2

@vitaut vitaut merged commit ae1de3a into fmtlib:master Jan 1, 2019
@vitaut
Copy link
Contributor

vitaut commented Jan 1, 2019

Merged, thanks!

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