From 14c6c798396a3778c46f8d33c02d95002129b30a Mon Sep 17 00:00:00 2001 From: milarin Date: Fri, 3 Mar 2023 19:32:59 +0100 Subject: [PATCH] fixed newline in novel description --- api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.go b/api.go index 77be7cd..e953d57 100644 --- a/api.go +++ b/api.go @@ -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()