From 5be4996b7b55032390fdd2435965ea12cb7eb394 Mon Sep 17 00:00:00 2001 From: gryf Date: Sun, 12 Apr 2020 13:43:17 +0200 Subject: [PATCH] Fix issue with nonhashable TextStyle objects in LRF format. --- ebook_converter/ebooks/lrf/pylrs/pylrs.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ebook_converter/ebooks/lrf/pylrs/pylrs.py b/ebook_converter/ebooks/lrf/pylrs/pylrs.py index fa95928..2da754b 100644 --- a/ebook_converter/ebooks/lrf/pylrs/pylrs.py +++ b/ebook_converter/ebooks/lrf/pylrs/pylrs.py @@ -1166,6 +1166,9 @@ class TextStyle(LrsStyle): tb.attrs = self.attrs.copy() return tb + def __hash__(self): + return id(self) + class BlockStyle(LrsStyle): """