forked from LiveCarta/BookConverter
quick fix
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user