diff options
| author | cah <cth@carlh.net> | 2025-07-10 22:47:19 +0200 |
|---|---|---|
| committer | cah <cth@carlh.net> | 2025-07-10 22:47:19 +0200 |
| commit | 4be4e97abf911e7633172ada950d107a3ed28834 (patch) | |
| tree | c9deceb5f3684fa081db0613da88264732093fcb /src/lib/release_notes.cc | |
| parent | 727c1aa7da8b325dfa38c8443b1dd356acaf6ec3 (diff) | |
| parent | 42bde2d97039f6d0d645d83db90612d18ebf225a (diff) | |
Merge branch 'compose-to-fmt-take2'
This removes all uses of String::compose, replacing them with fmt and
updating the i18n strings where required.
Diffstat (limited to 'src/lib/release_notes.cc')
| -rw-r--r-- | src/lib/release_notes.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/release_notes.cc b/src/lib/release_notes.cc index c2e644da7..b47b570a3 100644 --- a/src/lib/release_notes.cc +++ b/src/lib/release_notes.cc @@ -94,9 +94,9 @@ find_release_notes(bool dark, optional<string> current) } string const colour = dark ? "white" : "black"; - auto const span = String::compose("<span style=\"color: %1\">", colour); + auto const span = fmt::format("<span style=\"color: {}\">", colour); - auto output = String::compose("<h1>%1%2 %3 release notes</span></h1><ul>", span, variant::dcpomatic(), *current); + auto output = fmt::format("<h1>{}{} {} release notes</span></h1><ul>", span, variant::dcpomatic(), *current); for (auto const& note: notes) { output += string("<li>") + span + note + "</span>"; |
