2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2026-02-14 07:18:45 +00:00

annotation on heading

This commit is contained in:
2024-07-22 17:24:57 +02:00
parent 2de4ad2a2f
commit 48f2407a06
4 changed files with 190 additions and 2 deletions

View File

@@ -304,6 +304,7 @@ def logbookedit(request, year=None, slug=None):
title = request.POST["title"].strip()
entry = request.POST["text"].strip()
entry = entry.replace('\r','') # remove HTML-standard CR inserted from form.
entry = entry.replace('\n\n','\n<p>\n') # replace 2 \n with <br><br>
# 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>