Update ContentProcessor.kt

标题也需要替换
This commit is contained in:
kunfei
2022-02-01 22:57:53 +08:00
committed by GitHub
parent b5f8b8ab8e
commit d0cac05c71
@@ -94,7 +94,7 @@ class ContentProcessor private constructor(
}
if (includeTitle) {
//重新添加标题
mContent = chapter.getDisplayTitle() + "\n" + mContent
mContent = chapter.getDisplayTitle(getReplaceRules()) + "\n" + mContent
}
val contents = arrayListOf<String>()
mContent.split("\n").forEach { str ->
@@ -131,4 +131,4 @@ class ContentProcessor private constructor(
return mContent
}
}
}