Skip to content

Commit df87a40

Browse files
committed
Trimmed a bit too many whitespaces
1 parent 9083bfc commit df87a40

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sphinx_rtd_theme/layout.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@
6565
Workaround for: https://github.com/sphinx-doc/sphinx/issues/9730
6666
Once a fix is released in Sphinx, put an upper bound on the Sphinx version for the workaround
6767
-#}
68-
{%- if builder == 'dirhtml' and pageurl.endswith('.html') -%}
69-
{#- This expression trims away .html and adds a / -#}
68+
{%- if builder == 'dirhtml' and pageurl.endswith('.html') %}
69+
{#- This expression trims away .html and adds a / #}
7070
<link rel="canonical" href="{{ (pageurl|e)[:-5] }}/" />
71-
{%- else -%}
71+
{%- else %}
7272
<link rel="canonical" href="{{ pageurl|e }}" />
7373
{%- endif -%}
7474
{%- endif -%}

0 commit comments

Comments
 (0)