Rust: Very long monospace words cause rustdoc to look strange

Created on 7 Oct 2020  路  1Comment  路  Source: rust-lang/rust

I tried this code:

/// `vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv`
pub struct Item;

I expected to see some kind of wrapping in rendered docs, but instead, this adds a horizontal ruler. The ruler allows moving docs
below left panel:

GIF that shows the problem

![Peek 2020-10-07 16-49](https://user-images.githubusercontent.com/38225716/95342721-69667f00-08c0-11eb-8926-2e8c78820f60.gif)

Meta

rustdoc 1.48.0-nightly (1fd5b9d51 2020-09-20)

cc @GuillaumeGomez

A-rustdoc-ui C-bug T-rustdoc

Most helpful comment

Thanks for opening the issue! I'll fix it tomorrow.

>All comments

Thanks for opening the issue! I'll fix it tomorrow.

Was this page helpful?
0 / 5 - 0 ratings