text →
collapse-whitespace() → text

returns the argument with any two or more consecutive whitespaces replaced by the first whitespace in the sequence and trimming the result. \r\n is considered as a single character.

Parameters

This function has no parameters.

Examples

"Hello World" | collapse-whitespace  "Hello World"

Kind: Function
Scope: text/normalization
Aliases: text-to-collapse-whitespace


This site uses Just the Docs, a documentation theme for Jekyll.