Skip to main content

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

NameTypeDescription
textstringThe input string or lazy text object containing the content to be normalized

Returns

TypeDescription
stringThe input text with all carriage return (CR) and carriage return line feed (CRLF) sequences replaced by standard line feed (LF) characters