diff --git a/SabreTools.Helper/Objects/Dat/DatFile.cs b/SabreTools.Helper/Objects/Dat/DatFile.cs index a657a7e0..85861fdc 100644 --- a/SabreTools.Helper/Objects/Dat/DatFile.cs +++ b/SabreTools.Helper/Objects/Dat/DatFile.cs @@ -3369,8 +3369,21 @@ namespace SabreTools.Helper "\t\n" + "\t\n"; break; - case OutputFormat.Xml: case OutputFormat.SoftwareList: + header = "\n" + + "\n\n" + + "\t\n\n"; + break; + case OutputFormat.Xml: case OutputFormat.OfflineList: header = "\n" + "\n\n" + @@ -3464,8 +3477,13 @@ namespace SabreTools.Helper } depth = depth - (last == -1 ? 0 : last) + newsplit.Count; break; - case OutputFormat.Xml: case OutputFormat.SoftwareList: + state += "\t\n" + + "\t\t" + HttpUtility.HtmlEncode(rom.MachineDescription) + "\n" + + (rom.Year != null ? "\t\t" + HttpUtility.HtmlEncode(rom.Year) + "\n" : "") + + "\t\t\n"; + break; + case OutputFormat.Xml: case OutputFormat.OfflineList: state += "\t\n" + + "\t\t\t\t\n" + + "\t\t\t\n"; + break; + case ItemType.BiosSet: + state += "\t\t\t\n" + + "\t\t\t\t\n" + + "\t\t\t\n"; + break; + case ItemType.Disk: + state += "\t\t\t\n" + + "\t\t\t\t\n" + + "\t\t\t\n"; + break; + case ItemType.Release: + state += "\t\t\t\n" + + "\t\t\t\t\n" + + "\t\t\t\n"; + break; + case ItemType.Rom: + state += "\t\t\t\n" + + "\t\t\t\t\n" + + "\t\t\t\n"; + break; + case ItemType.Sample: + state += "\t\t\t\n" + + "\t\t\t\t\n" + + "\t\t\t\n"; + break; + } + break; + case OutputFormat.Xml: case OutputFormat.OfflineList: switch (rom.Type) { @@ -4016,8 +4095,10 @@ namespace SabreTools.Helper } footer += "\t\n\n"; break; - case OutputFormat.Xml: case OutputFormat.SoftwareList: + footer = "\t\n\n"; + break; + case OutputFormat.Xml: case OutputFormat.OfflineList: footer = "\t\n\n"; break; @@ -4029,9 +4110,11 @@ namespace SabreTools.Helper { switch (outputFormat) { + case OutputFormat.SoftwareList: + footer = "\n"; + break; case OutputFormat.SabreDat: case OutputFormat.Xml: - case OutputFormat.SoftwareList: case OutputFormat.OfflineList: footer = "\n"; break;