Specify doctype for generated pages.

This ensures compliance with PEP 503
This commit is contained in:
Dominic Davis-Foster 2022-01-30 22:26:29 +00:00 committed by GitHub
parent bdbd839a1b
commit 057d3b469d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -256,6 +256,7 @@ def handle_rpc():
def simpleindex():
links = sorted(config.backend.get_projects())
tmpl = """\
<!DOCTYPE html>
<html>
<head>
<title>Simple Index</title>
@ -299,6 +300,7 @@ def simple(project):
)
tmpl = """\
<!DOCTYPE html>
<html>
<head>
<title>Links for {{project}}</title>
@ -328,6 +330,7 @@ def list_packages():
)
tmpl = """\
<!DOCTYPE html>
<html>
<head>
<title>Index of packages</title>