forked from LiveCarta/BookConverter
epub converter: update config.py
This commit is contained in:
@@ -91,10 +91,10 @@ class HTMLPreprocessor:
|
||||
if style:
|
||||
style = self.convert_font_pt_to_px(style)
|
||||
if style != "":
|
||||
if color and color in LawCartaConfig.COLORS:
|
||||
if color and color in LawCartaConfig.COLORS_MAP:
|
||||
style += f'; color: {color};'
|
||||
font.attrs["style"] = style
|
||||
elif color and color in LawCartaConfig.COLORS:
|
||||
elif color and color in LawCartaConfig.COLORS_MAP:
|
||||
font.attrs["style"] = f'color: {color};'
|
||||
|
||||
if face is not None:
|
||||
|
||||
Reference in New Issue
Block a user