]> xmof Git - DeDRM.git/commitdiff
Python 3 fix
authorAldo Bleeker <mail@ableeker.demon.nl>
Mon, 22 Mar 2021 18:24:34 +0000 (19:24 +0100)
committerAldo Bleeker <mail@ableeker.demon.nl>
Mon, 22 Mar 2021 18:24:34 +0000 (19:24 +0100)
DeDRM_plugin/flatxml2html.py

index f1ca81dc73c489feb8aee870bdc17852044df12e..45e69497706fcb84700020196265afdc24c110ed 100644 (file)
@@ -559,7 +559,7 @@ class DocParser(object):
                     if (link > 0):
                         linktype = self.link_type[link-1]
                         title = self.link_title[link-1]
-                        title = title.rstrip(b'. ')
+                        title = title.rstrip(b'. ').decode('utf-8')
                         alt_title = parares[lstart:]
                         alt_title = alt_title.strip()
                         # now strip off the actual printed page number