mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Our code expects (rightfully) the TOC items to be ordered and to have increasing page numbers, but we may occasionally not get that from the engines (usually, because of bugs or duplicated IDs in the document). Check for that and fix page numbers (possibly making them wrong) to have a working TOC.