Skip to content

Commit

Permalink
Fix spacing for · between stability and source
Browse files Browse the repository at this point in the history
  • Loading branch information
jsha committed Jan 21, 2022
1 parent cbaeec1 commit ee6c33c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/librustdoc/html/static/css/rustdoc.css
Expand Up @@ -1176,7 +1176,6 @@ a.test-arrow:hover{
.out-of-band > span.since {
position: initial;
font-size: 1.25rem;
margin-right: 5px;
}

h3.variant {
Expand Down
2 changes: 1 addition & 1 deletion src/librustdoc/html/templates/print_item.html
Expand Up @@ -16,7 +16,7 @@ <h1 class="fqn"> {#- -#}
</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) -%}
Expand Down
5 changes: 2 additions & 3 deletions src/test/rustdoc/source-version-separator.rs
@@ -1,10 +1,9 @@
#![stable(feature = "bar", since = "1.0")]
#![crate_name = "foo"]

#![feature(staged_api)]

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

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

Expand Down

0 comments on commit ee6c33c

Please sign in to comment.