From 425d8af73e754e4c39d4a86f724233d762c4de44 Mon Sep 17 00:00:00 2001 From: Aldo Bleeker Date: Mon, 22 Mar 2021 19:24:34 +0100 Subject: [PATCH] Python 3 fix --- DeDRM_plugin/flatxml2html.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DeDRM_plugin/flatxml2html.py b/DeDRM_plugin/flatxml2html.py index f1ca81d..45e6949 100644 --- a/DeDRM_plugin/flatxml2html.py +++ b/DeDRM_plugin/flatxml2html.py @@ -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