epub converter: add font styles, fix white-space

This commit is contained in:
shirshasa
2021-07-16 16:52:41 +03:00
parent 7907f87594
commit 978b9b0b66
3 changed files with 5 additions and 3 deletions

View File

@@ -116,7 +116,7 @@ LIVECARTA_STYLE_ATTRS_MAPPING = {
'font-variant': lambda x: x,
'text-align': lambda x: x,
'font': lambda x: '',
'font-family': lambda x: LawCartaConfig.font_correspondence_table.get(x.capitalize()),
'font-family': lambda x: LawCartaConfig.font_correspondence_table.get(x) or LawCartaConfig.font_correspondence_table.get(x.capitalize()),
'font-size': convert_font_size,
'color': get_text_color,
'background-color': get_bg_color,