mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2024-11-22 15:21:52 +00:00
more
This commit is contained in:
parent
741754e676
commit
da8e22c856
@ -71,12 +71,12 @@ def logbookedit(request, year=None):
|
|||||||
return render(request, "errors/generic.html", {"message": message})
|
return render(request, "errors/generic.html", {"message": message})
|
||||||
else:
|
else:
|
||||||
# validation all to be done yet..
|
# validation all to be done yet..
|
||||||
date = request.POST["date"].strip() # check valid and this year
|
date = request.POST["date"].strip() # TODO check valid and this year
|
||||||
author = request.POST["author"].strip() # check against personexpedition
|
author = request.POST["author"].strip() # TODO check against personexpedition
|
||||||
others = request.POST["others"].strip() # check each against personexpedition
|
others = request.POST["others"].strip() # TODO check each against personexpedition
|
||||||
place = request.POST["place"].strip().replace('-','=') # no hyphens !
|
place = request.POST["place"].strip().replace('-','=') # no hyphens !
|
||||||
title = request.POST["title"].strip()
|
title = request.POST["title"].strip()
|
||||||
entry = request.POST["text"].strip() # get rid of trailing spaces
|
entry = request.POST["text"].strip()
|
||||||
entry = entry.replace('\r','') # remove HTML-standard CR inserted
|
entry = entry.replace('\r','') # remove HTML-standard CR inserted
|
||||||
entry = entry.replace('\n\n','\n<br /><br />\n') # replace 2 \n with <br><br>
|
entry = entry.replace('\n\n','\n<br /><br />\n') # replace 2 \n with <br><br>
|
||||||
entry = entry.replace('<p','<br /><br') # replace <p> tag, even if it has attributes, with <br><br>
|
entry = entry.replace('<p','<br /><br') # replace <p> tag, even if it has attributes, with <br><br>
|
||||||
|
Loading…
Reference in New Issue
Block a user