use span instead of div for since version
This commit is contained in:
parent
ef9a876f82
commit
8fc6e420d1
@ -3410,7 +3410,7 @@ fn render_stability_since_raw<'a, T: fmt::Write>(
|
|||||||
) -> fmt::Result {
|
) -> fmt::Result {
|
||||||
if let Some(v) = ver {
|
if let Some(v) = ver {
|
||||||
if containing_ver != ver && v.len() > 0 {
|
if containing_ver != ver && v.len() > 0 {
|
||||||
write!(w, "<div class='since' title='Stable since Rust version {0}'>{0}</div>", v)?
|
write!(w, "<span class='since' title='Stable since Rust version {0}'>{0}</span>", v)?
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
|
@ -914,7 +914,7 @@ h3 > .collapse-toggle, h4 > .collapse-toggle {
|
|||||||
height: 12px;
|
height: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
span.since {
|
.out-of-band > span.since {
|
||||||
position: initial;
|
position: initial;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
// ignore-tidy-linelength
|
|
||||||
|
|
||||||
#![crate_name = "foo"]
|
#![crate_name = "foo"]
|
||||||
|
|
||||||
#![feature(staged_api)]
|
#![feature(staged_api)]
|
||||||
@ -10,7 +8,8 @@
|
|||||||
pub struct SomeStruct;
|
pub struct SomeStruct;
|
||||||
|
|
||||||
impl SomeStruct {
|
impl SomeStruct {
|
||||||
// @has 'foo/struct.SomeStruct.html' '//*[@id="associatedconstant.SOME_CONST"]//div[@class="since"]' '1.1.2'
|
// @has 'foo/struct.SomeStruct.html' \
|
||||||
|
// '//*[@id="associatedconstant.SOME_CONST"]//span[@class="since"]' '1.1.2'
|
||||||
#[stable(since="1.1.2", feature="rust2")]
|
#[stable(since="1.1.2", feature="rust2")]
|
||||||
pub const SOME_CONST: usize = 0;
|
pub const SOME_CONST: usize = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user