mirror of
https://github.com/gedoor/legado.git
synced 2024-08-30 09:23:26 +08:00
修复txt章节结尾断码bug
This commit is contained in:
parent
3767bcb241
commit
a5548e8ee6
@ -173,13 +173,13 @@ class TextFile(private val book: Book) {
|
||||
val qyChapter = BookChapter()
|
||||
qyChapter.title = "前言"
|
||||
qyChapter.start = curOffset
|
||||
qyChapter.end = chapterLength.toLong()
|
||||
qyChapter.end = curOffset + chapterLength.toLong()
|
||||
toc.add(qyChapter)
|
||||
}
|
||||
//创建当前章节
|
||||
val curChapter = BookChapter()
|
||||
curChapter.title = matcher.group()
|
||||
curChapter.start = chapterLength.toLong()
|
||||
curChapter.start = curOffset + chapterLength.toLong()
|
||||
toc.add(curChapter)
|
||||
} else { //否则就block分割之后,上一个章节的剩余内容
|
||||
//获取上一章节
|
||||
|
Loading…
Reference in New Issue
Block a user