StringIndentExtensions extension

Indent and dedent for multi-line strings.

on

Methods

dedent() String

Available on String, provided by the StringIndentExtensions extension

Removes the common leading whitespace from every line.
indentLines(String prefix) String

Available on String, provided by the StringIndentExtensions extension

Prepends prefix to every line (after splitting by newline).