dedent
Functions
pub fn dedent(text: String) -> String
Remove shared indentation from each line of the given string. Leading and trailing whitespace is also removed.
dedent(
"
I am at level one
* level two
- level two
- level three
> That's it!
",
)
// Results in:
"I am at level one
* level two
- level two
- level three
> That's it!"