diff --git a/pypiserver/_app.py b/pypiserver/_app.py index b75e50f..f5083b2 100644 --- a/pypiserver/_app.py +++ b/pypiserver/_app.py @@ -256,19 +256,20 @@ def handle_rpc(): @auth("list") def simpleindex(): links = sorted(config.backend.get_projects()) - tmpl = """\ - - - - Simple Index - - -

Simple Index

- % for p in links: - {{p}}
- % end - - + tmpl = """ + + + + + Simple Index + + +

Simple Index

+ % for p in links: + {{p}}
+ % end + + """ return template(tmpl, links=links) @@ -300,19 +301,20 @@ def simple(project): for pkg in packages ) - tmpl = """\ - - - - Links for {{project}} - - -

Links for {{project}}

- % for file, href in links: - {{file}}
- % end - - + tmpl = """ + + + + + Links for {{project}} + + +

Links for {{project}}

+ % for file, href in links: + {{file}}
+ % end + + """ return template(tmpl, project=project, links=links) @@ -330,19 +332,20 @@ def list_packages(): (pkg.relfn_unix, urljoin(fp, pkg.fname_and_hash)) for pkg in packages ) - tmpl = """\ - - - - Index of packages - - -

Index of packages

- % for file, href in links: - {{file}}
- % end - - + tmpl = """ + + + + + Index of packages + + +

Index of packages

+ % for file, href in links: + {{file}}
+ % end + + """ return template(tmpl, links=links)