diff --git a/app/src/main/java/io/legado/app/ui/rss/read/ReadRssViewModel.kt b/app/src/main/java/io/legado/app/ui/rss/read/ReadRssViewModel.kt
index f5b84642f..72af31aca 100644
--- a/app/src/main/java/io/legado/app/ui/rss/read/ReadRssViewModel.kt
+++ b/app/src/main/java/io/legado/app/ui/rss/read/ReadRssViewModel.kt
@@ -138,17 +138,28 @@ class ReadRssViewModel(application: Application) : BaseViewModel(application),
}
fun clHtml(content: String): String {
- return if (content.contains("
- $content
- """.trimIndent()
+ return when {
+ !rssSource?.style.isNullOrEmpty() -> {
+ """
+
+ $content
+ """.trimIndent()
+ }
+ content.contains("
+ $content
+ """.trimIndent()
+ }
}
}
diff --git a/app/src/main/res/values-zh-rHK/strings.xml b/app/src/main/res/values-zh-rHK/strings.xml
index 79ff25a1c..7aa554fdb 100644
--- a/app/src/main/res/values-zh-rHK/strings.xml
+++ b/app/src/main/res/values-zh-rHK/strings.xml
@@ -417,7 +417,7 @@
描述規則 (ruleDescription)
圖片 url 規則 (ruleImage)
內容規則 (ruleContent)
- 樣式
+ 樣式 (style)
鏈接規則 (ruleLink)
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 448a53465..83e6bdc84 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -417,7 +417,7 @@
描述规则(ruleDescription)
图片url规则(ruleImage)
内容规则(ruleContent)
- 样式
+ 样式(style)
链接规则(ruleLink)