diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2023-11-07 23:20:59 +0200 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2023-11-07 23:20:59 +0200 |
commit | 1ba37665b5ff17c92e2fc7d3587c166ffd79af96 (patch) | |
tree | 470d7a866ab7c8a2a9b221204c99932180ee9a22 /core/views/uploads.py | |
parent | 3f94955883bae222cb049ef5af0b52c31a3ecac4 (diff) | |
download | troggle-1ba37665b5ff17c92e2fc7d3587c166ffd79af96.tar.gz troggle-1ba37665b5ff17c92e2fc7d3587c166ffd79af96.tar.bz2 troggle-1ba37665b5ff17c92e2fc7d3587c166ffd79af96.zip |
<p> now OK in logbook entries
Diffstat (limited to 'core/views/uploads.py')
-rw-r--r-- | core/views/uploads.py | 10 |
1 files changed, 5 insertions, 5 deletions
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<br />\n<br />\n') # replace 2 \n with <br><br> - entry = entry.replace('<p>','<br />\n<br') # replace <p> tag with <br><br> - entry = entry.replace('<p ','<br />\n<br') # replace <p> tag with attributes with <br><br> - entry = entry.replace('<br>','<br />') # clean up previous hack + entry = entry.replace('\r','') # remove HTML-standard CR inserted from form. + # entry = entry.replace('\n\n','\n<br />\n<br />\n') # replace 2 \n with <br><br> + # entry = entry.replace('<p>','<br />\n<br') # replace <p> tag with <br><br> + # entry = entry.replace('<p ','<br />\n<br') # replace <p> tag with attributes with <br><br> + # entry = entry.replace('<br>','<br />') # clean up previous hack tu = request.POST["tu"].strip() tu = clean_tu(tu) |