Support ini files with spaces around the ‘=‘.

This commit is contained in:
Paul Chote
2014-07-05 01:28:15 +12:00
parent 220bc2ec08
commit 446d98e625

View File

@@ -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)