with_indent

Docorator.with_indent(s, indent=0, stacklevel=3)

Substitute a string with the indented params.

Parameters
  • s (str) – The string in which to substitute

  • indent (int) – The number of spaces that the substitution should be indented

  • stacklevel (int) – The stacklevel for the warning raised in safe_module() when encountering an invalid key in the string

Returns

The substituted string

Return type

str

See also

with_indent, dedent