Put XML tag on its own line

This commit is contained in:
Jason Streifling 2024-04-04 17:02:20 +02:00
parent edd8a49e8f
commit c4aea5c6a6

2
rss.go
View File

@ -239,5 +239,5 @@ func (f *Feed) ToXML(encoding string) (string, error) {
return "", fmt.Errorf("error XML encoding feed: %v", err)
}
return `<?xml version="1.0" encoding="` + encoding + `"?>` + string(xml), nil
return fmt.Sprintln(`<?xml version="1.0" encoding="`+encoding+`"?>`) + string(xml), nil
}