normalize_newlines
Normalize CRLF and CR newlines to just LF.
def normalize_newlines(
text: string
) - > string
Normalize CRLF and CR newlines to just LF.
Parameters
| Name | Type | Description |
|---|---|---|
| text | string | The input string or lazy text object containing the content to be normalized |
Returns
| Type | Description |
|---|---|
string | The input text with all carriage return (CR) and carriage return line feed (CRLF) sequences replaced by standard line feed (LF) characters |