Skip to content

Commit c72b73c

Browse files
Review
1 parent fe9cd73 commit c72b73c

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

python_docs_theme/layout.html

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,13 @@ <h3>{{ _('Navigation') }}</h3>
136136

137137
{% block footer %}
138138
<div class="footer">
139-
&copy; {% if theme_copyright_url or hasdoc('copyright') %}
140-
{# Wrapping the below link introduces spurious whitespace #}
141-
<a href="{% if theme_copyright_url %}{{ theme_copyright_url }}{% else %}{{ pathto('copyright') }}{% endif %}">{% endif %}{% trans %}Copyright{% endtrans %}{% if theme_copyright_url or hasdoc('copyright') %}</a>
142-
{% endif %} {{ copyright|e }}.
139+
&copy; {% if theme_copyright_url or hasdoc('copyright') -%}
140+
<a href="{% if theme_copyright_url %}{{ theme_copyright_url }}{% else %}{{ pathto('copyright') }}{% endif %}">
141+
{%- endif -%}
142+
{%- trans -%}Copyright{%- endtrans -%}
143+
{%- if theme_copyright_url or hasdoc('copyright') -%}
144+
</a>
145+
{%- endif %} {{ copyright|e }}.
143146
<br>
144147
{% trans %}This page is licensed under the Python Software Foundation License Version 2.{% endtrans %}
145148
<br>

0 commit comments

Comments
 (0)