Skip to main content

reindent_block

Function reindent_block 

Source
pub fn reindent_block(
    text: &str,
    target_width: usize,
    settings: &Settings,
) -> String
Expand description

]p / [p reindent: shift every line of text so the FIRST line’s indent matches target_width columns; later lines keep their relative offset.