Skip to content

Very long monospace words cause rustdoc to look strange #77652

Closed
@WaffleLapkin

Description

@WaffleLapkin

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

Metadata

Metadata

Labels

A-rustdoc-uiArea: Rustdoc UI (generated HTML)C-bugCategory: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions