From 250708807a2162d0ca5ff90590f7d89520fa5378 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 12 Oct 2021 07:27:21 +0200 Subject: [PATCH] dfsfds --- files/routes/comments.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/comments.py b/files/routes/comments.py index 46f1a7398..3e6fe91b6 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -152,7 +152,7 @@ def api_comment(v): for i in re.finditer('^(https:\/\/.*\.(png|jpg|jpeg|gif|webp|PNG|JPG|JPEG|GIF|WEBP|9999))', body, re.MULTILINE): if "wikipedia" not in i.group(1): body = body.replace(i.group(1), f'![]({i.group(1)})') - body = re.sub('([^\n])\n([^\n])', r'\1\n\n\2', body) + # body = re.sub('([^\n])\n([^\n])', r'\1\n\n\2', body) body_md = body options = []