Skip to content
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

Error for a specific epub #25

Closed
akito-sama opened this issue Mar 10, 2023 · 1 comment
Closed

Error for a specific epub #25

akito-sama opened this issue Mar 10, 2023 · 1 comment

Comments

@akito-sama
Copy link

akito-sama commented Mar 10, 2023

i recently when playing around with bk encountering a mysterious bug:

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: UnknownEntityReference("rsquo", TextPos { row: 12, col: 36 })', /home/kaito/.cargo/registry/src/github.com-1ecc6299db9ec823/bk-0.5.3/src/epub.rs:57:63
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace .

i though first that the problem was coming from the epub which may be corrupted, but i found that it can be read with other terminal reader like epr
i really like this project and i want to use it to read epub, but this limitation makes it harder to use

@aeosynth
Copy link
Owner

aeosynth commented Mar 10, 2023

that's an issue with the xml library. see #13 and

bk/src/epub.rs

Lines 56 to 57 in 61beded

// https://github.com/RazrFalcon/roxmltree/issues/12
// UnknownEntityReference for HTML entities

i could add a note to that error, that it's a known issue

i though first that the problem was coming from the epub which may be corrupted

the issue is with the epub, but other readers may have more lenient parsers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants