From 5d383e0445357740b02093957aa7149975b90669 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Sat, 14 Oct 2023 02:05:25 +0300 Subject: [PATCH] fix bug in

removal --- core/views/uploads.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/views/uploads.py b/core/views/uploads.py index 0c2f655..5c035d8 100644 --- a/core/views/uploads.py +++ b/core/views/uploads.py @@ -213,7 +213,8 @@ def logbookedit(request, year=None, slug=None): entry = request.POST["text"].strip() entry = entry.replace('\r','') # remove HTML-standard CR inserted entry = entry.replace('\n\n','\n
\n
\n') # replace 2 \n with

- entry = entry.replace('\n tag, even if it has attributes, with

+ entry = entry.replace('

','
\n tag with

+ entry = entry.replace('

\n tag with attributes with

entry = entry.replace('
','
') # clean up previous hack tu = request.POST["tu"].strip() tu = clean_tu(tu)