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

V2 bug fixes #356

Open
wants to merge 15 commits into
base: apiv2
Choose a base branch
from
Open

Conversation

bhattumang7
Copy link

I am fixing several bugs with this pull request.

  • When downloading the files, an error occurs about the encoding of files. I fixed that.
  • A warning about the escape sequence in the code that showed the utility logo was fixed.
  • An error occurred when sending an epub to Kindle if content with a significant length had "display: none" as styling. I changed it to "visibility: hidden" to avoid that problem.
  • Fixed an error where SB_THEME_FILE (override_v1.css) was missing from the manifest.
  • Fixed a bug where the table of contents was not building correctly for Kindle. The problem was that the ID for the 'navPoint' was blank, which was the problem.
  • Added a feature to download the images mentioned in the CSS file and included these files to manifest correctly with the correct type.
  • The files were UTF-8, but the meta tag did not mention the encoding, causing gibberish characters on the Kindle device.
  • Adjusted the CSS file override_v1.css so the final epub generated has correct code snippets.
  • Fixed a bug where the cover page does not appear correctly on the Kindle device. The cover image's "content=" in meta did not mention the correct ID in the list.

Fixed an error related to char map UTF 8
    return codecs.charmap_encode(input,self.errors,encoding_table)[0]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeEncodeError: 'charmap' codec can't encode character '\U0001d719' in position 32547: character maps to <undefined>
…nifest

- Not adding the custom theme to self.css was causing it go missing from the manifest. Corrected that. Also, adjusted the CSS download code to handle local file copy.
- Not having a try catch was not giving correct errors. Added that.
… problem and table of content was not building
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

Successfully merging this pull request may close these issues.

1 participant