Fix code review comments

This commit is contained in:
Lars Eggert 2023-10-27 17:29:09 -07:00
parent e65277e6ee
commit d246879069
No known key found for this signature in database
GPG key ID: 54B5C309BF70C157

View file

@ -283,8 +283,7 @@ def materials_document(request, document, num=None, ext=None):
content_type = content_type.replace("plain", "markdown", 1)
break
elif atype[0] == "text/html":
bytes = render(
request,
bytes = render_to_string(
"minimal.html",
{
"content": markdown.markdown(bytes.decode(encoding=chset)),