The pev page can be the first one
This commit is contained in:
parent
2febea7d90
commit
c81992de2c
1 changed files with 2 additions and 2 deletions
|
@ -103,10 +103,10 @@ func chapterList(e *epub.Epub, file string, id string, base string) (string, str
|
||||||
|
|
||||||
/* if is the same chapter check the previous */
|
/* if is the same chapter check the previous */
|
||||||
i := activeIndx-1
|
i := activeIndx-1
|
||||||
for i > 0 && strings.Contains(chapters[i].Link, "#") {
|
for i >= 0 && strings.Contains(chapters[i].Link, "#") {
|
||||||
i--
|
i--
|
||||||
}
|
}
|
||||||
if i > 0 {
|
if i >= 0 {
|
||||||
prev = chapters[i].Link
|
prev = chapters[i].Link
|
||||||
}
|
}
|
||||||
i = activeIndx+1
|
i = activeIndx+1
|
||||||
|
|
Reference in a new issue