forked from LiveCarta/BookConverter
LAW-3489
This commit is contained in:
@@ -351,6 +351,8 @@ class Book:
|
||||
face = re.sub(r",[\w,\- ]*$", "", face)
|
||||
if face != self.DEFAULT_FONT_NAME and self.font_correspondence_table.get(face):
|
||||
font.attrs["face"] = self.font_correspondence_table[face]
|
||||
else:
|
||||
font.attrs["face"] = self.DEFAULT_FONT_NAME
|
||||
|
||||
if len(font.attrs) == 0:
|
||||
font.unwrap()
|
||||
|
||||
Reference in New Issue
Block a user