[FileTools] Fix occasion where XML file is not normally indented and spaced

This commit is contained in:
Matt Nadareski
2016-10-03 09:22:18 -07:00
parent 0a004b4ab1
commit 574bff9c2e

View File

@@ -92,7 +92,7 @@ namespace SabreTools.Helper
sr.Dispose();
// If we have an XML-based DAT
if (first.StartsWith("<?xml") && first.EndsWith("?>"))
if (first.Contains("<?xml") && first.Contains("?>"))
{
if (second.StartsWith("<!doctype datafile"))
{