Strip leading trailing empty lines in doc code blocks by GuillaumeGomez · Pull Request #103376 · rust-lang/rust (original) (raw)
Fixes #102996.
We currently have an inconsistent way of handling leading and trailing empty lines in doc code blocks (some examples in the linked issue). With this PR, I propose to remove all of them, whether there is hidden code or not. So for example:
let x = 12;
hello
will be rendered like this:
let x = 12;
What do you think @rust-lang/rustdoc ?