Update ContentProcessor.kt

标题也需要替换
This commit is contained in:
kunfei 2022-02-01 22:57:53 +08:00 committed by GitHub
parent 86f6adba06
commit 0b9f58d1b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}
}
}