From 446d98e625a4abd6ea9d00d0e7eed23f2645ac94 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sat, 5 Jul 2014 01:28:15 +1200 Subject: [PATCH] =?UTF-8?q?Support=20ini=20files=20with=20spaces=20around?= =?UTF-8?q?=20the=20=E2=80=98=3D=E2=80=98.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- OpenRA.Game/FileFormats/IniFile.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)