about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2021-12-08 16:08:12 +0100
committerGitHub <noreply@github.com>2021-12-08 16:08:12 +0100
commit382426be34fe0d5fda38068bb60ed1ac06ebd4c8 (patch)
treeaf6dac927b177d3de3ca96d52c01950c65ae6007
parent75e2f794dcfcdd6812070848e54651ec7fb8d740 (diff)
parent4dd3f4e9ea820f0053abe624d2bdb3a8e4b10d5f (diff)
downloadrust-382426be34fe0d5fda38068bb60ed1ac06ebd4c8.tar.gz
rust-382426be34fe0d5fda38068bb60ed1ac06ebd4c8.zip
Rollup merge of #91630 - GuillaumeGomez:missing-whitespace, r=notriddle
Add missing whitespace before disabled HTML attribute

On the [w3c HTML checker](https://validator.w3.org/nu/#textarea), with the current generated HTML we get:

![Screenshot from 2021-12-07 15-10-38](https://user-images.githubusercontent.com/3050060/145044653-b38fb679-da76-4890-853f-b696d8fdc06e.png)

The problem was that we were telling tera to remove too many whitespace.

r? ````@notriddle````
-rw-r--r--src/librustdoc/html/templates/page.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/templates/page.html b/src/librustdoc/html/templates/page.html
index 3c6f083419a..5c957e4a379 100644
--- a/src/librustdoc/html/templates/page.html
+++ b/src/librustdoc/html/templates/page.html
@@ -20,7 +20,7 @@
           id="mainThemeStyle"> {#- -#}
     {%- for theme in themes -%}
         <link rel="stylesheet" type="text/css" {# -#}
-            href="{{static_root_path | safe}}{{theme}}{{page.resource_suffix}}.css" {#- -#}
+            href="{{static_root_path | safe}}{{theme}}{{page.resource_suffix}}.css" {# -#}
         {%- if theme == "light" -%}
             id="themeStyle"
         {%- else -%}