You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some documentation that I recently wrote, I had an inline code block that has a leading space.
` 5`
This is rendered as <code>5</code> — notice the lack of a leading space.
Given that the documentation in question is literally to show how a leading space is added, and given that code blocks otherwise display content as-is, this seems like a bug to me.
Thanks for opening this issue @jhpratt! I moved this issue from rust-lang/docs.rs to rust-lang/rust as this is a rustdoc bug (docs.rs just calls rustdoc to build the documentation).
…, r=GuillaumeGomez
Preserve whitespace inside one-backtick codeblocks
Previously this was only done inside short docblocks (e.g., summary
lines), but we should also do so in general.
Fixesrust-lang#65555
In some documentation that I recently wrote, I had an inline code block that has a leading space.
This is rendered as
<code>5</code>
— notice the lack of a leading space.Given that the documentation in question is literally to show how a leading space is added, and given that code blocks otherwise display content as-is, this seems like a bug to me.
Reference for full source code in case this behavior isn't consistent: https://github.com/time-rs/time/blob/7dc4cf32c48d4e5113661423b4869b5015decb64/src/lib.rs#L80-L84
The text was updated successfully, but these errors were encountered: