Fix ComicInfo xml Fields, indent ComicInfo.xml

This commit is contained in:
Neshura 2025-02-18 23:08:32 +01:00
parent c263fd9ccd
commit 09866ca4dd
Signed by: Neshura
GPG key ID: 4E2D47B1374C297D

View file

@ -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"`