Skip to content

Commit

Permalink
Rollup merge of rust-lang#91630 - GuillaumeGomez:missing-whitespace, …
Browse files Browse the repository at this point in the history
…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``
  • Loading branch information
matthiaskrgr committed Dec 8, 2021
2 parents 4f05c4a + 4dd3f4e commit 1839c1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustdoc/html/templates/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 -%}
Expand Down

0 comments on commit 1839c1a

Please sign in to comment.