Skip to content

Commit 24ac541

Browse files
authored
Rollup merge of #93068 - jsha:dot-spacing, r=GuillaumeGomez
Fix spacing for `·` between stability and source This puts in an actual space (by adjusting the space-eating operators in our templates), updates the test, and remove the now-unnecessary CSS rule. r? ``@GuillaumeGomez``
2 parents 55a1f8b + ee6c33c commit 24ac541

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

src/librustdoc/html/static/css/rustdoc.css

-1
Original file line numberDiff line numberDiff line change
@@ -1199,7 +1199,6 @@ a.test-arrow:hover{
11991199
.out-of-band > span.since {
12001200
position: initial;
12011201
font-size: 1.25rem;
1202-
margin-right: 5px;
12031202
}
12041203

12051204
h3.variant {

src/librustdoc/html/templates/print_item.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ <h1 class="fqn"> {#- -#}
1616
</h1> {#- -#}
1717
<span class="out-of-band"> {#- -#}
1818
{% if !stability_since_raw.is_empty() %}
19-
{{- stability_since_raw|safe -}} · {# -#}
19+
{{- stability_since_raw|safe }} · {# -#}
2020
{% endif %}
2121
{%- match src_href -%}
2222
{%- when Some with (href) -%}

src/test/rustdoc/source-version-separator.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
#![stable(feature = "bar", since = "1.0")]
22
#![crate_name = "foo"]
3-
43
#![feature(staged_api)]
54

65
// @has foo/trait.Bar.html
7-
// @has - '//div[@class="main-heading"]/*[@class="out-of-band"]' '1.0· source · '
6+
// @has - '//div[@class="main-heading"]/*[@class="out-of-band"]' '1.0 · source · '
87
#[stable(feature = "bar", since = "1.0")]
98
pub trait Bar {
109
// @has - '//div[@id="tymethod.foo"]/*[@class="rightside"]' '3.0 · source'
@@ -15,7 +14,7 @@ pub trait Bar {
1514
// @has - '//div[@id="implementors-list"]//*[@class="rightside"]' '4.0 · source'
1615

1716
// @has foo/struct.Foo.html
18-
// @has - '//div[@class="main-heading"]/*[@class="out-of-band"]' '1.0· source · '
17+
// @has - '//div[@class="main-heading"]/*[@class="out-of-band"]' '1.0 · source · '
1918
#[stable(feature = "baz", since = "1.0")]
2019
pub struct Foo;
2120

0 commit comments

Comments
 (0)