Skip to content

Commit 99a8aee

Browse files
committed
Trim all whitespace form defaultBuildTargets...
1 parent 5dacbde commit 99a8aee

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

External/Plugins/ProjectManager/Projects/ProjectReader.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
using System.Diagnostics;
44
using System.Text;
55
using System.Xml;
6+
using System.Linq;
67
using System.Collections.Generic;
78

89
namespace ProjectManager.Projects
@@ -188,7 +189,8 @@ public void ReadProjectOptions()
188189
case "defaultBuildTargets":
189190
if (!String.IsNullOrEmpty(Value.Trim()) && Value.IndexOf(",") > -1)
190191
{
191-
project.MovieOptions.DefaultBuildTargets = Value.Trim().Split(',');
192+
String trimmed = new String(Value.Where(c => !Char.IsWhiteSpace(c)).ToArray());
193+
project.MovieOptions.DefaultBuildTargets = trimmed.Split(',');
192194
}
193195
break;
194196

512 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)