mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-16 11:57:07 +00:00
<p> now OK in logbook entries
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user