mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-30 23:00:21 -04:00
oops
This commit is contained in:
parent
b1dea424fe
commit
3f0099a2e1
@ -119,7 +119,7 @@ def lrs_color(html_color):
|
||||
if match:
|
||||
return '0x00'+hex(int(match.group(1)))[2:]+hex(int(match.group(2)))[2:]+hex(int(match.group(3)))[2:]
|
||||
if hcol in NAME_MAP:
|
||||
return NAME_MAP[hcol]
|
||||
return NAME_MAP[hcol].replace('#', '0x00')
|
||||
return '0x00000000'
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user