Space the matchday number in the live ticker's title
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
46cd93472f
commit
333bc57526
1 file changed
+3
@@ -276,6 +276,9 @@ Json engine_live_progress(const Json &previous, const Json &state, const Json &b
|
||||
if (next.is_object() && next.at("home").at("id") == m.at("home").at("id")) {
|
||||
competition = next.at("competition").value("text", competition);
|
||||
std::replace(competition.begin(), competition.end(), '\n', ' ');
|
||||
// "24.Spieltag" of the original reads "24. Spieltag"
|
||||
for (size_t i = 0; i + 1 < competition.size(); ++i)
|
||||
if (competition[i] == '.' && std::isalpha(static_cast<unsigned char>(competition[i + 1]))) competition.insert(++i, 1, ' ');
|
||||
}
|
||||
} catch (const std::exception &) {}
|
||||
out["matches"].push_back({{"id", id}, {"home", home}, {"away", away}, {"owners", owners}, {"competition", competition},
|
||||
|
||||
Reference in new issue
Block a user