fix code styling
This commit is contained in:
parent
3b5a663cd4
commit
7a86519b84
|
@ -293,7 +293,8 @@ class Filter:
|
||||||
div = soup.find('div', attrs={'class': "n692Zd"})
|
div = soup.find('div', attrs={'class': "n692Zd"})
|
||||||
if style and div and not self.mobile:
|
if style and div and not self.mobile:
|
||||||
css = style.string
|
css = style.string
|
||||||
css_html_tag = ('html{'
|
css_html_tag = (
|
||||||
|
'html{'
|
||||||
'font-family: Roboto, Helvetica Neue, Arial, sans-serif;'
|
'font-family: Roboto, Helvetica Neue, Arial, sans-serif;'
|
||||||
'font-size: 14px;'
|
'font-size: 14px;'
|
||||||
'line-height: 20px;'
|
'line-height: 20px;'
|
||||||
|
@ -301,7 +302,8 @@ class Filter:
|
||||||
'color: #3c4043;'
|
'color: #3c4043;'
|
||||||
'word-wrap: break-word;'
|
'word-wrap: break-word;'
|
||||||
'background-color: #fff;'
|
'background-color: #fff;'
|
||||||
'}')
|
'}'
|
||||||
|
)
|
||||||
css = f"{css_html_tag}{css}"
|
css = f"{css_html_tag}{css}"
|
||||||
css = re.sub('body{(.*?)}',
|
css = re.sub('body{(.*?)}',
|
||||||
'body{padding:0 8px;margin:0 auto;max-width:736px;}',
|
'body{padding:0 8px;margin:0 auto;max-width:736px;}',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user