Skip to content

Text normalization

normalize_newlines(text)

Normalize line endings to \n.

Snapshot files are stored and compared using Unix newlines for determinism.

strip_trailing_whitespace(text)

Strip trailing spaces and tabs from each line.