normalizeWhitespace

Replaces all runs of ASCII whitespace with a single space.

ascii
normalizeWhitespace
(
ascii s
)

Examples

t
{
	assert(normalizeWhitespace(" Mary  had\ta\nlittle\r\n\tlamb") == "Mary had a little lamb"

Meta