Skip to content

Commit caee94f

Browse files
committed
chore: ignore one line break in simple detail HTML
Signed-off-by: Mike Fiedler <[email protected]>
1 parent 3a1f8c8 commit caee94f

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

warehouse/templates/api/simple/detail.html

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,15 @@
1212
<h1>Links for {{ name }}</h1>
1313
{% for file in files -%}
1414
<a href="{{ file.url }}#sha256={{ file.hashes.sha256 }}"
15-
{% if file.get('requires-python') %}data-requires-python="{{ file['requires-python'] }}"{% endif %}
16-
{% if file.yanked %}data-yanked="{% if file.yanked is string %}{{ file.yanked }}{% endif %}
17-
"
18-
{% endif %}
19-
{% if file['core-metadata'] %}data-dist-info-metadata="sha256={{ file['core-metadata']['sha256'] }}" data-core-metadata="sha256={{ file['core-metadata']['sha256'] }}"{% endif %}
20-
{% if file.get('provenance') %}data-provenance="{{ file['provenance'] }}"{% endif %}>{{ file.filename }}</a>
21-
<br />
15+
{% if file.get('requires-python') %}data-requires-python="{{ file['requires-python'] }}"{% endif %}
16+
{% if file.yanked %}data-yanked="{% if file.yanked is string %}{{ file.yanked }}{% endif %}
17+
"
18+
{% endif %}
19+
{% if file['core-metadata'] %}data-dist-info-metadata="sha256={{ file['core-metadata']['sha256'] }}" data-core-metadata="sha256={{ file['core-metadata']['sha256'] }}"{% endif %}
20+
{# djlint:off #}
21+
{# TODO: Disabled is due to some clients not parsing **HTML**. See https://github.com/pypi/warehouse/issues/18275 #}
22+
{% if file.get('provenance') %}data-provenance="{{ file['provenance'] }}"{% endif %}>{{ file.filename }}</a><br />
23+
{# djlint:on #}
2224
{% endfor -%}
2325
</body>
2426
</html>

0 commit comments

Comments
 (0)