From 1ba37665b5ff17c92e2fc7d3587c166ffd79af96 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Tue, 7 Nov 2023 23:20:59 +0200 Subject:

now OK in logbook entries --- core/views/uploads.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'core/views/uploads.py') diff --git a/core/views/uploads.py b/core/views/uploads.py index 0477835..136744b 100644 --- a/core/views/uploads.py +++ b/core/views/uploads.py @@ -215,11 +215,11 @@ def logbookedit(request, year=None, slug=None): place = request.POST["place"].strip().replace(' - ',' = ') # no hyphens ! title = request.POST["title"].strip() 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 with

- entry = entry.replace('

\n tag with attributes with

- entry = entry.replace('
','
') # clean up previous hack + entry = entry.replace('\r','') # remove HTML-standard CR inserted from form. + # entry = entry.replace('\n\n','\n
\n
\n') # replace 2 \n 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) -- cgit v1.2.3