Fix doc [−] button bug by escaping differently
The cause of the problem is described here: https://github.com/rust-lang/rust/pull/24797#issuecomment-97049765 . I tested this new `main.js` by changing the `main.js` content of a rendered docs page to this new content. The [−] button worked again.
This commit is contained in:
parent
5449f5d29e
commit
2258aef74f
2 changed files with 9 additions and 9 deletions
|
@ -1460,7 +1460,7 @@ impl<'a> fmt::Display for Item<'a> {
|
|||
try!(write!(fmt, "<span class='out-of-band'>"));
|
||||
try!(write!(fmt,
|
||||
r##"<span id='render-detail'>
|
||||
<a id="toggle-all-docs" href="#" title="collapse all docs">[−]</a>
|
||||
<a id="toggle-all-docs" href="#" title="collapse all docs">[−]</a>
|
||||
</span>"##));
|
||||
|
||||
// Write `src` tag
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue