From 8d90e76805d7249a5b1c4f8f35ed486fca38ce63 Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 13 Sep 2023 01:08:34 +0300 Subject: [PATCH] fix repeated linebreaks in snappy quotes --- 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 84b8ce777..e03ea8437 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -251,7 +251,7 @@ def comment(v): body_for_checking = '\n{[para]}\n' + body + '\n{[para]}\n' if body_for_checking in f.read(): abort(400, "Snappy quote already exists!") - f.write('\n{[para]}\n' + body) + f.write('{[para]}\n' + body) body_for_sanitize = body if v.owoify: body_for_sanitize = owoify(body_for_sanitize)