fixed newline in novel description

This commit is contained in:
milarin 2023-03-03 19:32:59 +01:00
parent 3e17876ecf
commit 14c6c79839

2
api.go
View File

@ -82,7 +82,7 @@ func (api *Api) GetNovelByID(novelID NovelID) (*Novel, error) {
}
title := doc.Find(".seriestitlenu").Text()
description := doc.Find("#editdescription").Text()
description := strings.TrimSpace(doc.Find("#editdescription").Text())
cover := doc.Find(".wpb_wrapper img").AttrOr("src", "")
associatedNamesHtml, err := doc.Find("#editassociated").Html()