Skip to content

Commit 14bc63c

Browse files
committed
tmp
1 parent 3027997 commit 14bc63c

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

pulp_python/app/utils.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
"""
4949

5050
# TODO in the future: data-requires-python (PEP 503)
51-
# TODO now: strip empty lines
5251
simple_detail_template = """<!DOCTYPE html>
5352
<html>
5453
<head>
@@ -57,14 +56,12 @@
5756
</head>
5857
<body>
5958
<h1>Links for {{ project_name }}</h1>
60-
{% for pkg in project_packages %}
61-
<a href="{{ pkg.url }}#sha256={{ pkg.sha256 }}"
62-
{% if pkg.metadata_sha256 %}
63-
data-dist-info-metadata="sha256={{ pkg.metadata_sha256 }}"
64-
{% endif %}
65-
rel="internal" {% if pkg.provenance -%}
59+
{%- for pkg in project_packages %}
60+
<a href="{{ pkg.url }}#sha256={{ pkg.sha256 }}" rel="internal"
61+
{%- if pkg.metadata_sha256 %} data-dist-info-metadata="sha256={{ pkg.metadata_sha256 }}"
62+
{%- endif %} {% if pkg.provenance -%}
6663
data-provenance="{{ pkg.provenance }}"{% endif %}>{{ pkg.filename }}</a><br/>
67-
{% endfor %}
64+
{%- endfor %}
6865
</body>
6966
</html>
7067
"""

0 commit comments

Comments
 (0)