-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Epub viewer: The page contains the following errors #86
Comments
This is only in the version with inappwebview, older versions with webview work correctly |
Hi @vitaliynester, can you provide us with a sample epub? Do you see some logs? This really suggests a malformed Epub... But your comment about the previous version (based on WebView) contradicts this feeling... |
Here is an example epub file. Error occurs from second page |
OK, I can reproduce the issue on Android and iOS. On iOS, the Webview appears white, without the red paragraph. The |
Thank you for the feedback. These differences are just a pretty-print artifact. VS displays a compact form when the element has no child, I think (
Digging... |
OK. Clue. I see (by adding ) that we are inserting Readium stuff at the wrong place (see the <<link below:
Weird. Never happened. I have to check the pattern matching in the |
More precisely, the wrong generated code is:
Both Readium-specific injected elements are inserted inside the element of the book instead of being inject outside of it!!! The issue happens somewhere around these lines. |
I wonder why then it does not work with a particular instance, and not in general? How can this be fixed? |
The structure of your HTML seems to defeat our pattern matching. Should be pretty easy to fix, but I need time. I have to switch to other tasks for now, but I'll fix that shortly, probably tomorrow. Sorry for the trouble. |
Hi @vitaliynester, I tried a quick fix that seems to work well on your book: on this line, remove the "+ 1", as follows:
I don't push it for now, I'll wait for your feedback. |
This is wonderful! I will try this fix and test it on similar books. Thanks a lot! |
I have tried this solution and it fixed all the books that I had an issue with, will be testing it for the upcoming week and tell you my feedback, Thanks ! |
Hello all! When opening some pages in some workbooks, the following error may occur. What to do?
The text was updated successfully, but these errors were encountered: