From 7a86519b84bf3e232ae1268893e87e962e2b987a Mon Sep 17 00:00:00 2001 From: jacr13 Date: Wed, 17 Nov 2021 18:14:27 +0100 Subject: [PATCH] fix code styling --- app/filter.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/filter.py b/app/filter.py index f54b554..c9de1cf 100644 --- a/app/filter.py +++ b/app/filter.py @@ -293,7 +293,8 @@ class Filter: div = soup.find('div', attrs={'class': "n692Zd"}) if style and div and not self.mobile: css = style.string - css_html_tag = ('html{' + css_html_tag = ( + 'html{' 'font-family: Roboto, Helvetica Neue, Arial, sans-serif;' 'font-size: 14px;' 'line-height: 20px;' @@ -301,7 +302,8 @@ class Filter: 'color: #3c4043;' 'word-wrap: break-word;' 'background-color: #fff;' - '}') + '}' + ) css = f"{css_html_tag}{css}" css = re.sub('body{(.*?)}', 'body{padding:0 8px;margin:0 auto;max-width:736px;}',