Inline code has collapsed whitespace #83550
Labels
C-bug
Category: This is a bug.
P-high
High priority
regression-from-stable-to-stable
Performance or correctness regression from one stable version to another.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
Code
When documenting the handling of whitespace in the textwrap crate, I noticed that whitespace is collapsed in inline code. That is,
is rendered the same as
Test it with
Version it worked on
It worked on Rust 1.50:
Version with regression
It stopped working on Rust 1.51. I tracked down the change to #81558, which removed
white-space: pre-wrap
from the CSS. The page now looks like this:The text was updated successfully, but these errors were encountered: