From e4f4a8a089d8f9c966495f6972dd79374a90b9cd Mon Sep 17 00:00:00 2001 From: shirshasa Date: Fri, 28 Aug 2020 13:52:06 +0300 Subject: [PATCH] quick fix --- src/html_preprocessor.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/html_preprocessor.py b/src/html_preprocessor.py index 3c0d783..d65f924 100644 --- a/src/html_preprocessor.py +++ b/src/html_preprocessor.py @@ -92,10 +92,10 @@ class HTMLPreprocessor: font.attrs["style"] = style if face is not None: face = re.sub(r",[\w,\- ]*$", "", face) - if face != BookConfig.DEFAULT_FONT_NAME and BookConfig.font_correspondence_table.get(face): - font.attrs["face"] = BookConfig.font_correspondence_table[face] + if face != LawCartaConfig.DEFAULT_FONT_NAME and LawCartaConfig.font_correspondence_table.get(face): + font.attrs["face"] = LawCartaConfig.font_correspondence_table[face] else: - font.attrs["face"] = BookConfig.DEFAULT_FONT_NAME + font.attrs["face"] = LawCartaConfig.DEFAULT_FONT_NAME if len(font.attrs) == 0: font.unwrap()