From 09866ca4ddd264f186b75d4abd1f066e645b44af Mon Sep 17 00:00:00 2001 From: Neshura <neshura@neshweb.net> Date: Tue, 18 Feb 2025 23:08:32 +0100 Subject: [PATCH] Fix ComicInfo xml Fields, indent ComicInfo.xml --- main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 775ba62..4a2da05 100644 --- a/main.go +++ b/main.go @@ -596,13 +596,13 @@ func GenerateChapterMetadata(volume jnc.VolumeAugmented, serie jnc.SerieAugmente comicInfo.Language = language comicInfo.Format = "Comic" // JNC reports this as type in the epub file - return xml.Marshal(comicInfo) + return xml.MarshalIndent(comicInfo, " ", " ") } type ComicInfo struct { XMLName string `xml:"ComicInfo"` - XMLNS string `xml:"xmlns,attr"` - XSI string `xml:"xsi,attr"` + XMLNS string `xml:"xmlns:xsi,attr"` + XSI string `xml:"xsi:noNamespaceSchemaLocation,attr"` Series string `xml:"Series"` Title string `xml:"Title"` Volume int `xml:"Volume"`