diff --git a/examples/opmhash.cpp b/examples/opmhash.cpp index 39e44c911..030e8122d 100644 --- a/examples/opmhash.cpp +++ b/examples/opmhash.cpp @@ -18,10 +18,10 @@ */ #include -#include -#include #include +#include + #include #include #include @@ -85,12 +85,11 @@ std::size_t deck_hash(const std::vector& keywords) { void print_keywords(const std::vector& keywords, bool location_info) { for (const auto& kw : keywords) { if (location_info) - std::cout << std::setw(8) << std::left << kw.name << " : " << kw.filename << ":" << kw.line_number << " " << kw.content_hash << std::endl; + fmt::print("{:8s} : {}:{} {} \n", kw.name, kw.filename, kw.line_number, kw.content_hash); else - std::cout << std::setw(8) << std::left << kw.name << " : " << kw.content_hash << std::endl; + fmt::print("{:8s} : {} \n", kw.name, kw.content_hash); } - std::cout << std::endl; - std::cout << std::setw(8) << std::left << "Total" << " : " << deck_hash(keywords) << std::endl; + fmt::print("\n{:8s} : {}\n", "Total", deck_hash(keywords)); }