Normalized session agenda html content before running it into PyQuery to avoid later occurrences of ' ' for each carriage return.
- Legacy-Id: 11430
This commit is contained in:
parent
8fbc23ee1f
commit
377a84c52b
|
@ -594,6 +594,7 @@ def session_agenda(request, num, session):
|
|||
elif ext == "pdf":
|
||||
return HttpResponse(content, content_type="application/pdf")
|
||||
elif ext in ["html", "htm"]:
|
||||
content=re.sub("(\r\n|\r)", "\n", content)
|
||||
d = PyQuery(content)
|
||||
d("head title").empty()
|
||||
d("head title").append(str(agenda))
|
||||
|
|
Loading…
Reference in a new issue