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()