epub converter: bug fix

- remove adding border 0 in td
-save links while headings removal
This commit is contained in:
shirshasa
2021-06-02 08:41:46 +03:00
parent 044439e617
commit 1b94b870a7
3 changed files with 15 additions and 4 deletions

View File

@@ -59,9 +59,7 @@ def str2color_name(s: str):
elif '#' in s:
name = get_hex_color_name(s)
if (name == 'white') and (s.lower() not in ['#ffffff', '#fff']):
return 'gray'
if name == 'grey':
return 'gray'
name = 'gray'
return name