fmt: more update to use new fmt-based APIs

This commit is contained in:
Dirk-Jan C. Binnema
2023-07-06 12:22:50 +03:00
parent 91c5a9bac5
commit 82235b9d49
8 changed files with 141 additions and 182 deletions

View File

@ -106,7 +106,7 @@ body_or_summary(const Message& message, const Options& opts)
const auto summ{summarize(body->c_str(), *opts.view.summary_len)};
print_field("Summary", summ, color);
} else {
print_encoded("%s", body->c_str());
mu_print_encoded("{}", *body);
if (!g_str_has_suffix(body->c_str(), "\n"))
mu_println("");
}