Explorar o código

fix:知识资源es内容截取

zqbao hai 6 meses
pai
achega
dca5716593
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      services/knowledge/es.go

+ 1 - 0
services/knowledge/es.go

@@ -177,6 +177,7 @@ func ExtractTextFromResourceContent(content string) (text string) {
 		return
 	}
 	text = doc.Text()
+	text = strings.ReplaceAll(text, "\n", "")
 	return
 }