diff options
author | NoDRM <[email protected]> | 2022-12-23 10:44:45 +0100 |
---|---|---|
committer | NoDRM <[email protected]> | 2022-12-23 10:44:45 +0100 |
commit | a30405bebfc99626aeea2ffb20c4b428008221e5 (patch) | |
tree | dc4c0a9bcd03c01a1d8f028fb44db9dd290e4f62 | |
parent | 901a6c091d116b232044a803e5eaf337bcb115c0 (diff) |
Fix Python3 bug in stylexml2css.py, fixes #232
-rw-r--r-- | CHANGELOG.md | 5 | ||||
-rw-r--r-- | DeDRM_plugin/stylexml2css.py | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 3d61094..845a90a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/DeDRM_plugin/stylexml2css.py b/DeDRM_plugin/stylexml2css.py index 1d46a9e..3721da4 100644 --- a/DeDRM_plugin/stylexml2css.py +++ b/DeDRM_plugin/stylexml2css.py @@ -181,7 +181,7 @@ class DocParser(object): print("Scale not defined!") scale = 1.0 - if val == "": + if not val: val = 0 if not ((attr == b'hang') and (int(val) == 0)): |