Put XML tag on its own line
This commit is contained in:
parent
edd8a49e8f
commit
c4aea5c6a6
2
rss.go
2
rss.go
@ -239,5 +239,5 @@ func (f *Feed) ToXML(encoding string) (string, error) {
|
|||||||
return "", fmt.Errorf("error XML encoding feed: %v", err)
|
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
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user