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:
Henrik Levkowetz 2016-06-20 22:02:05 +00:00
parent 8fbc23ee1f
commit 377a84c52b

View file

@ -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))