Skip to content

Commit e0b4a33

Browse files
authored
Remove self-closing tags (#226)
1 parent 729fcc1 commit e0b4a33

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

python_docs_theme/footerdonate.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{% trans %}The Python Software Foundation is a non-profit corporation.{% endtrans %}
22
<a href="https://www.python.org/psf/donations/">{% trans %}Please donate.{% endtrans %}</a>
3-
<br />
3+
<br>

python_docs_theme/layout.html

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ <h3>{{ _('Navigation') }}</h3>
1414
</li>
1515
{%- endfor %}
1616
{%- block rootrellink %}
17-
<li><img src="{{ pathto('_static/' ~ theme_root_icon, 1) }}" alt="{{ theme_root_icon_alt_text }}" style="vertical-align: middle; margin-top: -1px"/></li>
17+
<li><img src="{{ pathto('_static/' ~ theme_root_icon, 1) }}" alt="{{ theme_root_icon_alt_text }}" style="vertical-align: middle; margin-top: -1px"></li>
1818
<li><a href="{{theme_root_url}}">{{theme_root_name}}</a>{{ reldelim1 }}</li>
1919
<li class="switchers">
2020
<div class="language_switcher_placeholder"></div>
@@ -48,8 +48,8 @@ <h3>{{ _('Navigation') }}</h3>
4848
{%- if builder != "htmlhelp" %}
4949
<div class="inline-search" role="search">
5050
<form class="inline-search" action="{{ pathto('search') }}" method="get">
51-
<input placeholder="{{ _('Quick search') }}" aria-label="{{ _('Quick search') }}" type="search" name="q" id="search-box" />
52-
<input type="submit" value="{{ _('Go') }}" />
51+
<input placeholder="{{ _('Quick search') }}" aria-label="{{ _('Quick search') }}" type="search" name="q" id="search-box">
52+
<input type="submit" value="{{ _('Go') }}">
5353
</form>
5454
</div>
5555
{%- endif %}
@@ -71,7 +71,7 @@ <h3>{{ _('Navigation') }}</h3>
7171

7272
{%- block extrahead -%}
7373
<link rel="stylesheet" href="{{ pathto('_static/pydoctheme_dark.css', 1) }}" media="(prefers-color-scheme: dark)" id="pydoctheme_dark_css">
74-
<link rel="shortcut icon" type="image/png" href="{{ pathto('_static/' ~ theme_root_icon, 1) }}" />
74+
<link rel="shortcut icon" type="image/png" href="{{ pathto('_static/' ~ theme_root_icon, 1) }}">
7575
{%- if builder != "htmlhelp" %}
7676
{%- if not embedded %}
7777
<script type="text/javascript" src="{{ pathto('_static/copybutton.js', 1) }}"></script>
@@ -93,23 +93,23 @@ <h3>{{ _('Navigation') }}</h3>
9393
{%- if builder != 'htmlhelp' %}
9494
<div class="mobile-nav">
9595
<input type="checkbox" id="menuToggler" class="toggler__input" aria-controls="navigation"
96-
aria-pressed="false" aria-expanded="false" role="button" aria-label="{{ _('Menu')}}" />
96+
aria-pressed="false" aria-expanded="false" role="button" aria-label="{{ _('Menu')}}">
9797
<nav class="nav-content" role="navigation">
9898
<label for="menuToggler" class="toggler__label">
9999
<span></span>
100100
</label>
101101
<span class="nav-items-wrapper">
102102
<a href="{{ theme_root_url }}" class="nav-logo">
103-
<img src="{{ pathto('_static/' ~ theme_root_icon, 1) }}" alt="{{ theme_root_icon_alt_text }}"/>
103+
<img src="{{ pathto('_static/' ~ theme_root_icon, 1) }}" alt="{{ theme_root_icon_alt_text }}">
104104
</a>
105105
<span class="version_switcher_placeholder"></span>
106106
{%- if pagename != "search" and builder != "singlehtml" %}
107107
<form role="search" class="search" action="{{ pathto('search') }}" method="get">
108108
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" class="search-icon">
109109
<path fill-rule="nonzero" fill="currentColor" d="M15.5 14h-.79l-.28-.27a6.5 6.5 0 001.48-5.34c-.47-2.78-2.79-5-5.59-5.34a6.505 6.505 0 00-7.27 7.27c.34 2.8 2.56 5.12 5.34 5.59a6.5 6.5 0 005.34-1.48l.27.28v.79l4.25 4.25c.41.41 1.08.41 1.49 0 .41-.41.41-1.08 0-1.49L15.5 14zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"></path>
110110
</svg>
111-
<input placeholder="{{ _('Quick search') }}" aria-label="{{ _('Quick search') }}" type="search" name="q" />
112-
<input type="submit" value="{{ _('Go') }}"/>
111+
<input placeholder="{{ _('Quick search') }}" aria-label="{{ _('Quick search') }}" type="search" name="q">
112+
<input type="submit" value="{{ _('Go') }}">
113113
</form>
114114
{%- endif %}
115115
</span>
@@ -121,7 +121,7 @@ <h3>{{ _('Navigation') }}</h3>
121121
{%- if logo %}
122122
<p class="logo">
123123
<a href="{{ pathto('index') }}">
124-
<img class="logo" src="{{ pathto('_static/' ~ logo, 1)|e }}" alt="Logo"/>
124+
<img class="logo" src="{{ pathto('_static/' ~ logo, 1)|e }}" alt="Logo">
125125
</a>
126126
</p>
127127
{%- endif %}
@@ -143,29 +143,29 @@ <h3>{{ _('Navigation') }}</h3>
143143
{% if theme_copyright_url or hasdoc('copyright') %}
144144
</a>
145145
{% endif %} {{ copyright|e }}.
146-
<br />
146+
<br>
147147
{% trans %}This page is licensed under the Python Software Foundation License Version 2.{% endtrans %}
148-
<br />
148+
<br>
149149
{% trans %}Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.{% endtrans %}
150-
<br />
150+
<br>
151151
{% if theme_license_url %}
152-
{% trans license_file=theme_license_url %}See <a href="{{ license_file }}">History and License</a> for more information.{% endtrans %}<br />
152+
{% trans license_file=theme_license_url %}See <a href="{{ license_file }}">History and License</a> for more information.{% endtrans %}<br>
153153
{% endif %}
154154
{% if theme_hosted_on %}
155-
{% trans hosted_on=theme_hosted_on %}Hosted on {{ hosted_on }}.{% endtrans %}<br />
155+
{% trans hosted_on=theme_hosted_on %}Hosted on {{ hosted_on }}.{% endtrans %}<br>
156156
{% endif %}
157-
<br />
157+
<br>
158158

159159
{% include "footerdonate.html" %}
160-
<br />
160+
<br>
161161

162162
{%- if last_updated %}
163163
{% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %}
164164
{%- endif %}
165165
{% if theme_issues_url %}
166166
{% trans %}<a href="{{ theme_issues_url }}">Found a bug</a>?{% endtrans %}
167167
{% endif %}
168-
<br />
168+
<br>
169169

170170
{% trans sphinx_version=sphinx_version|e %}Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> {{ sphinx_version }}.{% endtrans %}
171171
</div>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy