summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/views/uploads.py3
1 files changed, 2 insertions, 1 deletions
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<br />\n<br />\n') # replace 2 \n with <br><br>
- entry = entry.replace('<p','<br />\n<br') # replace <p> tag, even if it has attributes, 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)