about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-01-14 07:47:39 +0100
committerGitHub <noreply@github.com>2022-01-14 07:47:39 +0100
commit2ae4afddd739144afba7348fb682d7b0cade6f67 (patch)
treee9fc46443cfbe0a8533084362bf88bb20057f436 /src
parentdae3ef2eb2c49542d7eb802db17f3863f87202b1 (diff)
parentd5871d09f1a4643ca2f1d02ea5f147a412ead1f5 (diff)
Rollup merge of #92864 - Urgau:fix-missing-source-dot, r=jsha
Fix a missing dot in the main item heading

This pull-request fix a missing `·` in the item header ~~and also make use of `&nbsp;` to explicit that the spaces are mandatory~~.

| Before | After |
| --- | --- |
| ![image](https://user-images.githubusercontent.com/3616612/149393966-7cca6dc5-9a62-47fa-8c9c-18f936d43aa9.png) | ![image](https://user-images.githubusercontent.com/3616612/149393869-5ffd6e44-d91c-4ece-b69e-d103304f6626.png) |

PS: This was introduce yesterday by https://github.com/rust-lang/rust/pull/92526 (the migration from Tera to Askama) and is not currently observable in the nightly doc.
Diffstat (limited to 'src')
-rw-r--r--src/librustdoc/templates/print_item.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustdoc/templates/print_item.html b/src/librustdoc/templates/print_item.html
index c98c6db424a..459b01a9960 100644
--- a/src/librustdoc/templates/print_item.html
+++ b/src/librustdoc/templates/print_item.html
@@ -16,12 +16,12 @@
     </h1> {#- -#}
     <span class="out-of-band"> {#- -#}
         {% if !stability_since_raw.is_empty() %}
-        {{- stability_since_raw|safe -}} ·
+        {{- stability_since_raw|safe -}} · {# -#}
         {% endif %}
         {%- match src_href -%}
             {%- when Some with (href) -%}
-                <a class="srclink" href="{{href|safe}}" title="goto source code">source</a>
-            {%- else -%} ·
+                <a class="srclink" href="{{href|safe}}" title="goto source code">source</a> · {# -#}
+            {%- else -%}
         {%- endmatch -%}
         <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs"> {#- -#}
             [<span class="inner">&#x2212;</span>] {#- -#}