Skip to content

Commit

Permalink
Fix Python3 bug in stylexml2css.py, fixes #232
Browse files Browse the repository at this point in the history
  • Loading branch information
noDRM committed Dec 23, 2022
1 parent 901a6c0 commit a30405b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,6 @@ List of changes since the fork of Apprentice Harper's repository:
- Update the README (fixes #136) to indicate that Apprentice Harper's version is no longer being updated.
- Fix a bug where PDFs with empty arrays (`<>`) in a PDF object failed to decrypt, fixes #183.
- Automatically strip whitespace from entered Amazon Kindle serial numbers, should fix #158.
- Obok: Add new setting option "Add new entry" for duplicate books to always add them to the Calibre database as a new book. Untested. Should fix #148.
- Obok: Fix where changing the Calibre UI language to some languages would cause the "duplicate book" setting to reset. Untested.
- Obok: Add new setting option "Add new entry" for duplicate books to always add them to the Calibre database as a new book. Fixes #148.
- Obok: Fix where changing the Calibre UI language to some languages would cause the "duplicate book" setting to reset.
- Fix Python3 bug in stylexml2css.php script, fixes #232.
2 changes: 1 addition & 1 deletion DeDRM_plugin/stylexml2css.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def process(self):
print("Scale not defined!")
scale = 1.0

if val == "":
if not val:
val = 0

if not ((attr == b'hang') and (int(val) == 0)):
Expand Down

0 comments on commit a30405b

Please sign in to comment.