Skip to main content

indent

Function indent 

Source
pub fn indent(text: &str, n: usize) -> String
Expand description

Indent every line of text by n spaces.

Blank lines (consisting only of whitespace) are preserved but not indented.