Input (no trailing whitespaces anywhere):
/// Hi
///
/// ```text
///
/// rrr
///
/// xxx
/// ```
fn foo() {
}
rustfmt +nightly --config format_code_in_doc_comments=true
outputs:
/// Hi
///
/// ```text
///<WHITESPACE>
/// rrr
///
/// xxx
/// ```
fn foo() {}
Note whitespace is inserted only on the first empty line.
rustfmt 1.7.0-nightly (ca663b06 2024-01-08)