forked from LiveCarta/BookConverter
epub converter: tmp color fix
This commit is contained in:
@@ -222,6 +222,10 @@ def add_inline_style_to_html_soup(soup1, css_text):
|
||||
tag.attrs['style'] = style
|
||||
del tag.attrs['livecarta_id']
|
||||
|
||||
if(tag.name == 'p') and ('background-color' in tag.attrs.get('style')):
|
||||
tag.name = 'span'
|
||||
print(tag)
|
||||
|
||||
else:
|
||||
del tag.attrs['livecarta_id']
|
||||
return soup1
|
||||
|
||||
Reference in New Issue
Block a user