indent
Indent text.
def indent(
t: str,
indent: int = 0,
sep: str = '\n'
) - > str
Indent text.
Parameters
| Name | Type | Description |
|---|---|---|
| t | str | The input text to be indented |
| indent | int = 0 | The number of spaces to prefix to each line of the text |
| sep | str = '\n' | The string used to split the input text into lines and join them back together |
Returns
| Type | Description |
|---|---|
str | The resulting string with each line prefixed by the specified number of spaces |