]> xmof Git - DeDRM.git/commitdiff
Fix Python3 bug in stylexml2css.py, fixes #232
authorNoDRM <no_drm123@protonmail.com>
Fri, 23 Dec 2022 09:44:45 +0000 (10:44 +0100)
committerNoDRM <no_drm123@protonmail.com>
Fri, 23 Dec 2022 09:44:45 +0000 (10:44 +0100)
CHANGELOG.md
DeDRM_plugin/stylexml2css.py

index 3d610943017467e0c9a99c78f8a635b38902e1e0..845a90a5b37f68e12e20d5994907d97d5294fa4e 100644 (file)
@@ -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.
index 1d46a9e5f037376ce39c5fca00aeb860a417c0ce..3721da42097da898ad1b82c354a1ef9c52789d90 100644 (file)
@@ -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)):