diff --git a/src/librustdoc/html/markdown.rs b/src/librustdoc/html/markdown.rs index a40181352f6..1c0448828a2 100644 --- a/src/librustdoc/html/markdown.rs +++ b/src/librustdoc/html/markdown.rs @@ -565,7 +565,7 @@ fn next(&mut self) -> Option { self.buf.push_back((Event::Html(format!("", level).into()), 0..0)); let start_tags = format!( - "\ + "\ ", id = id, level = level diff --git a/src/librustdoc/html/markdown/tests.rs b/src/librustdoc/html/markdown/tests.rs index ea6575d179d..6b44e447b51 100644 --- a/src/librustdoc/html/markdown/tests.rs +++ b/src/librustdoc/html/markdown/tests.rs @@ -161,23 +161,23 @@ fn t(input: &str, expect: &str) { t( "# Foo bar", - "

Foo bar

", + "

Foo bar

", ); t( "## Foo-bar_baz qux", - "

\ + "

\ Foo-bar_baz qux

", ); t( "### **Foo** *bar* baz!?!& -_qux_-%", - "

\ + "

\ Foo \ bar baz!?!& -qux-%\

", ); t( "#### **Foo?** & \\*bar?!* _`baz`_ ❤ #qux", - "
\ + "
\ Foo? & *bar?!* \ baz ❤ #qux\
", @@ -204,32 +204,32 @@ fn t(map: &mut IdMap, input: &str, expect: &str) { t( &mut map, "# Example", - "

Example

", + "

Example

", ); t( &mut map, "# Panics", - "

Panics

", + "

Panics

", ); t( &mut map, "# Example", - "

Example

", + "

Example

", ); t( &mut map, "# Search", - "

Search

", + "

Search

", ); t( &mut map, "# Example", - "

Example

", + "

Example

", ); t( &mut map, "# Panics", - "

Panics

", + "

Panics

", ); } diff --git a/src/librustdoc/html/render/mod.rs b/src/librustdoc/html/render/mod.rs index f3e65df6b14..19b5fef4e09 100644 --- a/src/librustdoc/html/render/mod.rs +++ b/src/librustdoc/html/render/mod.rs @@ -2567,7 +2567,7 @@ fn render_call_locations(w: &mut Buffer, cx: &Context<'_>, item: &clean::Item) { w, "
\ \ -
\ +
\ Examples found in repository\
", id = id diff --git a/src/librustdoc/html/static/css/rustdoc.css b/src/librustdoc/html/static/css/rustdoc.css index 04112c9779b..78e7c97d71d 100644 --- a/src/librustdoc/html/static/css/rustdoc.css +++ b/src/librustdoc/html/static/css/rustdoc.css @@ -1141,16 +1141,6 @@ a.test-arrow { a.test-arrow:hover{ text-decoration: none; } -.section-header:hover a:before { - position: absolute; - left: -25px; - padding-right: 10px; /* avoid gap that causes hover to disappear */ - content: '\2002\00a7\2002'; -} - -.section-header:hover a { - text-decoration: none; -} .code-attribute { font-weight: 300; @@ -1196,17 +1186,6 @@ h3.variant { margin-top: 3px; } -.top-doc .docblock > .section-header:first-child { - margin-left: 15px; -} -.top-doc .docblock > .section-header:first-child:hover > a:before { - left: -10px; -} - -.docblock > .section-header:first-child { - margin-top: 0; -} - :target > code, :target > .code-header { opacity: 1; }