forked from LiveCarta/BookConverter
epub converter: small fix
This commit is contained in:
@@ -87,7 +87,7 @@ def rgba2rgb(r, g, b, alpha):
|
||||
|
||||
|
||||
def str2hex(s: str):
|
||||
if '#' in s:
|
||||
if '#' in s and (len(s) <= 7):
|
||||
return s.lower()
|
||||
|
||||
if ('rgb' in s) and ('%' in s):
|
||||
|
||||
Reference in New Issue
Block a user