diff --git a/OpenRA.Game/FileFormats/IniFile.cs b/OpenRA.Game/FileFormats/IniFile.cs index ee21695592..91b11cff63 100644 --- a/OpenRA.Game/FileFormats/IniFile.cs +++ b/OpenRA.Game/FileFormats/IniFile.cs @@ -81,8 +81,8 @@ namespace OpenRA.FileFormats var eq = line.IndexOf('='); if (eq >= 0) { - key = line.Substring(0, eq); - value = line.Substring(eq + 1, line.Length - eq - 1); + key = line.Substring(0, eq).Trim(); + value = line.Substring(eq + 1, line.Length - eq - 1).Trim(); } if (currentSection == null)