Skip to content

Commit 377a84c

Browse files
committed
Normalized session agenda html content before running it into PyQuery to avoid later occurrences of '&adamlaska#13;' for each carriage return.
- Legacy-Id: 11430
1 parent 8fbc23e commit 377a84c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

ietf/meeting/views.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -594,6 +594,7 @@ def session_agenda(request, num, session):
594594
elif ext == "pdf":
595595
return HttpResponse(content, content_type="application/pdf")
596596
elif ext in ["html", "htm"]:
597+
content=re.sub("(\r\n|\r)", "\n", content)
597598
d = PyQuery(content)
598599
d("head title").empty()
599600
d("head title").append(str(agenda))

0 commit comments

Comments
 (0)