Fix ComicInfo xml Fields, indent ComicInfo.xml
This commit is contained in:
parent
c263fd9ccd
commit
09866ca4dd
1 changed files with 3 additions and 3 deletions
6
main.go
6
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"`
|
||||
|
|
Loading…
Add table
Reference in a new issue