Support ini files with spaces around the ‘=‘.
This commit is contained in:
@@ -81,8 +81,8 @@ namespace OpenRA.FileFormats
|
|||||||
var eq = line.IndexOf('=');
|
var eq = line.IndexOf('=');
|
||||||
if (eq >= 0)
|
if (eq >= 0)
|
||||||
{
|
{
|
||||||
key = line.Substring(0, eq);
|
key = line.Substring(0, eq).Trim();
|
||||||
value = line.Substring(eq + 1, line.Length - eq - 1);
|
value = line.Substring(eq + 1, line.Length - eq - 1).Trim();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (currentSection == null)
|
if (currentSection == null)
|
||||||
|
|||||||
Reference in New Issue
Block a user