diff --git a/src/modern/ui/engine_live.cpp b/src/modern/ui/engine_live.cpp index b70e2ab..3262401 100644 --- a/src/modern/ui/engine_live.cpp +++ b/src/modern/ui/engine_live.cpp @@ -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(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},