Skip to content

Commit ee6c33c

Browse files
committed
Fix spacing for · between stability and source
1 parent cbaeec1 commit ee6c33c

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
@@ -1176,7 +1176,6 @@ a.test-arrow:hover{
11761176
.out-of-band > span.since {
11771177
position: initial;
11781178
font-size: 1.25rem;
1179-
margin-right: 5px;
11801179
}
11811180

11821181
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)