forked from LiveCarta/BookConverter
epub converter: fix bg-color
This commit is contained in:
@@ -80,7 +80,7 @@ def str2closest_html_color_name(s: str):
|
||||
|
||||
def str2hex(s: str):
|
||||
if '#' in s:
|
||||
return s
|
||||
return s.lower()
|
||||
|
||||
if ('rgb' in s) and ('%' in s):
|
||||
match = re.search(r'rgba*\(((\d+)%, *(\d+)%, *(\d+)%(, \d\.\d+)*)\)', s)
|
||||
|
||||
Reference in New Issue
Block a user