Skip to content

Commit 4c28b41

Browse files
fix: add non-breaking space to error codes in warehouse/templates/search/results.html and warehouse/templates/error-base.html templates (#18583)
1 parent bbcabd2 commit 4c28b41

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

warehouse/locale/messages.pot

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1402,7 +1402,7 @@ msgstr ""
14021402
msgid "Are you sure?"
14031403
msgstr ""
14041404

1405-
#: warehouse/templates/error-base.html:23
1405+
#: warehouse/templates/error-base.html:24
14061406
msgid "Error code"
14071407
msgstr ""
14081408

@@ -9577,8 +9577,8 @@ msgstr ""
95779577

95789578
#: warehouse/templates/search/results.html:141
95799579
#, python-format
9580-
msgid "<strong>%(count_display)s</strong> project"
9581-
msgid_plural "<strong>%(count_display)s</strong> projects"
9580+
msgid "<strong>%(count_display)s</strong> project&nbsp;"
9581+
msgid_plural "<strong>%(count_display)s</strong> projects&nbsp;"
95829582
msgstr[0] ""
95839583
msgstr[1] ""
95849584

warehouse/templates/error-base.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ <h1 class="viewport-section__heading">
2020
{% block error_text %}
2121
<div class="viewport-section__text">
2222
<p>
23-
<strong>{% trans %}Error code{% endtrans %}
24-
{% block error_code %}{% endblock %}
25-
</strong>
23+
{# djlint:off #}
24+
<strong>{% trans %}Error code{% endtrans %}&nbsp;{% block error_code %}{% endblock %}</strong>
25+
{# djlint:on #}
2626
<br>
2727
<a href="{{ request.route_path('index') }}">{% trans %}Back to the homepage{% endtrans %}</a>
2828
</p>

warehouse/templates/search/results.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,9 @@ <h2 class="sr-only">{% trans %}Search results{% endtrans %}</h2>
139139
{% set item_count_display = page.item_count|format_number %}
140140
{% endif %}
141141
{% trans count=page.item_count, count_display=item_count_display %}
142-
<strong>{{ count_display }}</strong> project
142+
<strong>{{ count_display }}</strong> project&nbsp;
143143
{% pluralize %}
144-
<strong>{{ count_display }}</strong> projects
144+
<strong>{{ count_display }}</strong> projects&nbsp;
145145
{% endtrans %}
146146
{% if term %}
147147
{% trans term=term %}for "{{ term }}"{% endtrans %}

0 commit comments

Comments
 (0)