diff --git a/src/librustdoc/askama.toml b/src/librustdoc/askama.toml
index 0c984f637ba..2732c4bc61e 100644
--- a/src/librustdoc/askama.toml
+++ b/src/librustdoc/askama.toml
@@ -1,2 +1,3 @@
[general]
dirs = ["html/templates"]
+whitespace = "suppress"
diff --git a/src/librustdoc/html/templates/page.html b/src/librustdoc/html/templates/page.html
index 7690d8f251f..e896850fab6 100644
--- a/src/librustdoc/html/templates/page.html
+++ b/src/librustdoc/html/templates/page.html
@@ -1,148 +1,148 @@
- {#- -#}
- {#- -#}
-
{#- -#}
- {#- -#}
- {#- -#}
- {#- -#}
- {#- -#}
- {{page.title}} {#- -#}
- {#- -#}
- {#- -#}
- {#- -#}
- {#- -#}
- {#- -#}
- {#- -#}
- {#- -#}
- {#- -#}
- {#- -#}
- {#- -#}
- {#- -#}
- {%- for theme in themes -%}
- {#- -#}
- {%- endfor -%}
- {%- if !layout.default_settings.is_empty() -%}
- {#- -#}
- {%- endif -%}
- {#- -#}
- {%- if page.css_class.contains("crate") -%}
- {#- -#}
- {%- else if page.css_class == "source" -%}
- {#- -#}
- {#- -#}
- {%- else if !page.css_class.contains("mod") -%}
- {#- -#}
- {%- endif -%}
- {#- -#}
- {%- if layout.scrape_examples_extension -%}
- {#- -#}
- {%- endif -%}
- {#- -#}
- {%- if layout.css_file_extension.is_some() -%}
- {#- -#}
- {%- endif -%}
- {%- if !layout.favicon.is_empty() -%}
- {#- -#}
- {%- else -%}
- {#- -#}
- {#- -#}
- {#- -#}
- {%- endif -%}
- {{- layout.external_html.in_header|safe -}}
- {#- -#}
- {#- -#}
- {#- -#}
- {{- layout.external_html.before_content|safe -}}
- {%- if page.css_class != "source" -%}
- {#- -#}
- {%- endif -%}
- {#- -#}
- {#- -#}
- {%- if page.css_class != "source" -%}{%- endif -%}
- {#- -#}
- {{- layout.external_html.after_content|safe -}}
- {#- -#}
-
{#- -#}
- {#- -#}
- {#- -#}
+ {% endfor %}
+ > {# #}
+ {% endif %}
+ {# #}
+ {% if page.css_class.contains("crate") %}
+ {# #}
+ {% else if page.css_class == "source" %}
+ {# #}
+ {# #}
+ {% else if !page.css_class.contains("mod") %}
+ {# #}
+ {% endif %}
+ {# #}
+ {% if layout.scrape_examples_extension %}
+ {# #}
+ {% endif %}
+ {# #}
+ {% if layout.css_file_extension.is_some() %}
+ {# #}
+ {% endif %}
+ {% if !layout.favicon.is_empty() %}
+ {# #}
+ {% else %}
+ {# #}
+ {# #}
+ {# #}
+ {% endif %}
+ {{ layout.external_html.in_header|safe }}
+ {# #}
+ {# #}
+ {# #}
+ {{ layout.external_html.before_content|safe }}
+ {% if page.css_class != "source" %}
+ {# #}
+ {% endif %}
+ {# #}
+ {# #}
+ {% if page.css_class != "source" %}{% endif %}
+ {# #}
+ {{ layout.external_html.after_content|safe }}
+ {# #}
+
{# #}
+ {# #}
+