|
@@ -10,6 +10,7 @@ import (
|
|
|
"fmt"
|
|
|
"github.com/rdlucklib/rdluck_tools/paging"
|
|
|
"html"
|
|
|
+ "strings"
|
|
|
)
|
|
|
|
|
|
// RagEtaReportController
|
|
@@ -146,7 +147,7 @@ func (c *RagEtaReportController) ArticleDetail() {
|
|
|
content = reportInfo.Content
|
|
|
// 如果是rai报告,则使用纯文本的报告内容
|
|
|
if reportInfo.RaiReportId > 0 {
|
|
|
- content = item.TextContent
|
|
|
+ content = strings.ReplaceAll(item.TextContent, `\n`, `<br />`)
|
|
|
}
|
|
|
} else {
|
|
|
// 章节报告
|