From 30e91e0179fa49cfd6c7946c689a6ca40f113c14 Mon Sep 17 00:00:00 2001 From: skeris Date: Fri, 27 Sep 2024 00:19:46 +0300 Subject: [PATCH] set brs in letter to handle multiline answers --- wctools/tools.go | 1 + 1 file changed, 1 insertion(+) diff --git a/wctools/tools.go b/wctools/tools.go index f0763bd..3d4d447 100644 --- a/wctools/tools.go +++ b/wctools/tools.go @@ -147,6 +147,7 @@ func ToJSON(data interface{}) (string, error) { func CleanNullContent(answers []model.ResultAnswer) []model.ResultAnswer { var results []model.ResultAnswer for _, answer := range answers { + answer.Content = strings.ReplaceAll(strings.ReplaceAll(answer.Content, "`,`", "`
`"),"\n","
") if answer.Content != "" { results = append(results, answer) }