From cc7e6ef645186219b92865c6cc98f6eb59dd3abf Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Sun, 13 Aug 2023 19:24:09 -0700 Subject: [PATCH] Fix a CSS conflict --- css/html_4chan_style.css | 2 +- modules/html_generator.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/css/html_4chan_style.css b/css/html_4chan_style.css index 99ac6845..cef9f6eb 100644 --- a/css/html_4chan_style.css +++ b/css/html_4chan_style.css @@ -98,7 +98,7 @@ margin-right: 40px !important; } -#parent #container .message { +#parent #container .message_4chan { color: black; border: none; } \ No newline at end of file diff --git a/modules/html_generator.py b/modules/html_generator.py index 422beb30..eb1da374 100644 --- a/modules/html_generator.py +++ b/modules/html_generator.py @@ -100,7 +100,7 @@ def process_post(post, c): src = re.sub('>', '>', src) src = re.sub('(>>[0-9]*)', '\\1', src) src = re.sub('\n', '
\n', src) - src = f'
{src}\n' + src = f'
{src}\n' src = f'Anonymous No.{number}\n{src}' return src @@ -141,7 +141,7 @@ def generate_4chan_html(f): output = output.split('\n') for i in range(len(output)): output[i] = re.sub(r'^(>(.*?)(
|))', r'\1', output[i]) - output[i] = re.sub(r'^
(>(.*?)(
|))', r'
\1', output[i]) + output[i] = re.sub(r'^
(>(.*?)(
|))', r'
\1', output[i]) output = '\n'.join(output) return output