mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[FileTools] Fix occasion where XML file is not normally indented and spaced
This commit is contained in:
@@ -92,7 +92,7 @@ namespace SabreTools.Helper
|
|||||||
sr.Dispose();
|
sr.Dispose();
|
||||||
|
|
||||||
// If we have an XML-based DAT
|
// If we have an XML-based DAT
|
||||||
if (first.StartsWith("<?xml") && first.EndsWith("?>"))
|
if (first.Contains("<?xml") && first.Contains("?>"))
|
||||||
{
|
{
|
||||||
if (second.StartsWith("<!doctype datafile"))
|
if (second.StartsWith("<!doctype datafile"))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user