Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Very long monospace words cause rustdoc to look strange #77652

Closed
WaffleLapkin opened this issue Oct 7, 2020 · 1 comment · Fixed by #77699
Closed

Very long monospace words cause rustdoc to look strange #77652

WaffleLapkin opened this issue Oct 7, 2020 · 1 comment · Fixed by #77699
Assignees
Labels
A-rustdoc-ui Area: Rustdoc UI (generated HTML) C-bug Category: This is a bug. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@WaffleLapkin
Copy link
Member

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

Meta

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

cc @GuillaumeGomez

@WaffleLapkin WaffleLapkin added the C-bug Category: This is a bug. label Oct 7, 2020
@GuillaumeGomez
Copy link
Member

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

@GuillaumeGomez GuillaumeGomez added A-rustdoc-ui Area: Rustdoc UI (generated HTML) T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. labels Oct 7, 2020
@GuillaumeGomez GuillaumeGomez self-assigned this Oct 7, 2020
JohnTitor added a commit to JohnTitor/rust that referenced this issue Oct 12, 2020
JohnTitor added a commit to JohnTitor/rust that referenced this issue Oct 12, 2020
@bors bors closed this as completed in a6cc660 Oct 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-rustdoc-ui Area: Rustdoc UI (generated HTML) C-bug Category: This is a bug. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants