dedent_initial
Remove indentation from first line of text.
def dedent_initial(
s: string,
n: integer = 4
) - > string
Remove indentation from first line of text.
Parameters
| Name | Type | Description |
|---|---|---|
| s | string | The input string whose first line will be processed for indentation removal. |
| n | integer = 4 | The number of leading spaces to check for and remove from the start of the string. |
Returns
| Type | Description |
|---|---|
string | The modified string with the leading spaces removed if the indentation matched, otherwise the original string. |