Strip newlines from player-set game names
Again, no idea how this could possibly happen, but I did see it.
This commit is contained in:
parent
16d88b01ac
commit
6169ba9d15
1 changed files with 5 additions and 1 deletions
|
@ -401,7 +401,11 @@ game_info::game_info(const config& game, const std::vector<std::string>& install
|
||||||
verified = false;
|
verified = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove any newlines that might have been in game titles
|
// Remove any newlines that might have been in game names (the player-set ones)
|
||||||
|
// No idea how this could happen, but I've seen it (vultraz, 2020-10-26)
|
||||||
|
boost::erase_all(name, "\n");
|
||||||
|
|
||||||
|
// Remove any newlines that might have been in game titles (scenario/campaign name, etc.)
|
||||||
boost::replace_all(scenario, "\n", " " + font::unicode_em_dash + " ");
|
boost::replace_all(scenario, "\n", " " + font::unicode_em_dash + " ");
|
||||||
|
|
||||||
if(reloaded) {
|
if(reloaded) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue