Crate indent

Source
Expand description

These functions are useful for inserting a multiline string into an already indented context in another string.

Functionsยง

  • Indents every line that is not empty by the given number of spaces.
  • Indents every line that is not empty with the given prefix.
  • Indents every line that is not empty by the given number of spaces, starting from the second line.
  • Indents every line that is not empty with the given prefix, starting from the second line.